public function PluginCollectionItemInterface::setContainedPluginInstance in Plugin 8.2
Sets the instantiated plugin.
Parameters
\Drupal\Component\Plugin\PluginInspectionInterface $plugin_instance:
Return value
$this
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if the given plugin instance does not exist for the type of plugin this container contains.
1 method overrides PluginCollectionItemInterface::setContainedPluginInstance()
- PluginCollectionItemBase::setContainedPluginInstance in src/
Plugin/ Field/ FieldType/ PluginCollectionItemBase.php - Sets the instantiated plugin.
File
- src/
Plugin/ Field/ FieldType/ PluginCollectionItemInterface.php, line 67
Class
- PluginCollectionItemInterface
- Defines a plugin collection field item.
Namespace
Drupal\plugin\Plugin\Field\FieldTypeCode
public function setContainedPluginInstance(PluginInspectionInterface $plugin_instance);