function PluginAwareInterface::setPlugin

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
  2. 10 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
  3. 11.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()

Sets the plugin for this object.

Parameters

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

4 methods override PluginAwareInterface::setPlugin()
PluginFormBase::setPlugin in core/lib/Drupal/Core/Plugin/PluginFormBase.php
Sets the plugin for this object.
WorkflowTypeConfigureFormBase::setPlugin in core/modules/workflows/src/Plugin/WorkflowTypeConfigureFormBase.php
Sets the plugin for this object.
WorkflowTypeStateFormBase::setPlugin in core/modules/workflows/src/Plugin/WorkflowTypeStateFormBase.php
Sets the plugin for this object.
WorkflowTypeTransitionFormBase::setPlugin in core/modules/workflows/src/Plugin/WorkflowTypeTransitionFormBase.php
Sets the plugin for this object.

File

core/lib/Drupal/Component/Plugin/PluginAwareInterface.php, line 16

Class

PluginAwareInterface
Provides an interface for objects that depend on a plugin.

Namespace

Drupal\Component\Plugin

Code

public function setPlugin(PluginInspectionInterface $plugin);

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