You are here

public function SystemMenuOffCanvasForm::setPlugin in Drupal 9

Same name and namespace in other branches
  1. 8 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 163

Class

SystemMenuOffCanvasForm
The setting_tray form handler for the SystemMenuBlock.

Namespace

Drupal\system\Form

Code

public function setPlugin(PluginInspectionInterface $plugin) {
  $this->plugin = $plugin;
  $this->menu = $this->menuStorage
    ->loadOverrideFree($this->plugin
    ->getDerivativeId());
}