function PluginAwareInterface::setPlugin
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
- 8.9.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
- 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\PluginCode
public function setPlugin(PluginInspectionInterface $plugin);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.