You are here

public function PluginCollectionItemBase::getContainedPluginId in Plugin 8.2

Gets the plugin ID.

Return value

string

Overrides PluginCollectionItemInterface::getContainedPluginId

Deprecated

Deprecated as of 8.x-2.0 and scheduled for removal before 8.x-3.0. Use static::getContainedPluginInstance()->getPluginId() instead.

File

src/Plugin/Field/FieldType/PluginCollectionItemBase.php, line 85

Class

PluginCollectionItemBase
Provides a base for plugin collection field items.

Namespace

Drupal\plugin\Plugin\Field\FieldType

Code

public function getContainedPluginId() {
  return $this
    ->get('plugin_id')
    ->getValue();
}