public function SystemMenuOffCanvasForm::setPlugin in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::setPlugin()
- 9 core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::setPlugin()
Sets the plugin for this object.
Parameters
\Drupal\Component\Plugin\PluginInspectionInterface $plugin: The plugin.
Overrides PluginFormBase::setPlugin
File
- core/
modules/ system/ src/ Form/ SystemMenuOffCanvasForm.php, line 166
Class
- SystemMenuOffCanvasForm
- The setting_tray form handler for the SystemMenuBlock.
Namespace
Drupal\system\FormCode
public function setPlugin(PluginInspectionInterface $plugin) {
$this->plugin = $plugin;
$this->menu = $this->menuStorage
->loadOverrideFree($this->plugin
->getDerivativeId());
}