public function PluginAwareInterface::setPlugin in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
- 9 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);