You are here

public function PluginId::getValue in Plugin 8.2

Gets the data value.

Return value

mixed The data value.

Overrides PrimitiveBase::getValue

File

src/Plugin/DataType/PluginId.php, line 59

Class

PluginId
Provides a plugin ID data type.

Namespace

Drupal\plugin\Plugin\DataType

Code

public function getValue() {
  $plugin_instance = $this->parent
    ->getContainedPluginInstance();
  if ($plugin_instance) {
    return $plugin_instance
      ->getPluginId();
  }
}