function PluginAwareInterface::setPlugin
Same name and namespace in other branches
- 11.x core/lib/Drupal/Component/Plugin/PluginAwareInterface.php \Drupal\Component\Plugin\PluginAwareInterface::setPlugin()
- 10 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()
Sets the plugin for this object.
Parameters
\Drupal\Component\Plugin\PluginInspectionInterface $plugin: The plugin.
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.