You are here

public function PluginCollectionItemInterface::setContainedPluginId in Plugin 8.2

Sets the plugin ID.

Parameters

string $plugin_id:

Return value

$this

Deprecated

Deprecated as of 8.x-2.0 and scheduled for removal before 8.x-3.0. Use static::setContainedPluginInstance().

1 method overrides PluginCollectionItemInterface::setContainedPluginId()
PluginCollectionItemBase::setContainedPluginId in src/Plugin/Field/FieldType/PluginCollectionItemBase.php
Sets the plugin ID.

File

src/Plugin/Field/FieldType/PluginCollectionItemInterface.php, line 96

Class

PluginCollectionItemInterface
Defines a plugin collection field item.

Namespace

Drupal\plugin\Plugin\Field\FieldType

Code

public function setContainedPluginId($plugin_id);