function BlockEntitySettingTrayForm::getPluginForm

File

core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php, line 114

Class

BlockEntitySettingTrayForm
Provides form for block instance forms when used in the off-canvas dialog.

Namespace

Drupal\settings_tray\Block

Code

protected function getPluginForm(BlockPluginInterface $block) {
  if ($block instanceof PluginWithFormsInterface) {
    return $this->pluginFormFactory
      ->createInstance($block, 'settings_tray', 'configure');
  }
  return $block;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.