protected function BlockEntitySettingTrayForm::getPluginForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php \Drupal\settings_tray\Block\BlockEntitySettingTrayForm::getPluginForm()
Retrieves the plugin form for a given block and operation.
Parameters
\Drupal\Core\Block\BlockPluginInterface $block: The block plugin.
Return value
\Drupal\Core\Plugin\PluginFormInterface The plugin form for the block.
Overrides BlockForm::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\BlockCode
protected function getPluginForm(BlockPluginInterface $block) {
if ($block instanceof PluginWithFormsInterface) {
return $this->pluginFormFactory
->createInstance($block, 'settings_tray', 'configure');
}
return $block;
}