function PluginFormBase::setPlugin

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::setPlugin()
  2. 8.9.x core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::setPlugin()
  3. 11.x core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::setPlugin()

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;
}

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