You are here

public function PluginFormBase::setPlugin in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::setPlugin()

Sets the plugin for this object.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $plugin: The plugin.

Overrides PluginAwareInterface::setPlugin

1 method overrides PluginFormBase::setPlugin()
SystemMenuOffCanvasForm::setPlugin in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Sets the plugin for this object.

File

core/lib/Drupal/Core/Plugin/PluginFormBase.php, line 27

Class

PluginFormBase
Provides a base class for plugin forms.

Namespace

Drupal\Core\Plugin

Code

public function setPlugin(PluginInspectionInterface $plugin) {
  $this->plugin = $plugin;
}