You are here

public function TypedData::getPluginDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getPluginDefinition()
  2. 10 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getPluginDefinition()

Gets the definition of the plugin implementation.

Return value

array The plugin definition, as returned by the discovery object used by the plugin manager.

Overrides PluginInspectionInterface::getPluginDefinition

File

core/lib/Drupal/Core/TypedData/TypedData.php, line 80

Class

TypedData
The abstract base class for typed data.

Namespace

Drupal\Core\TypedData

Code

public function getPluginDefinition() {
  return $this
    ->getTypedDataManager()
    ->getDefinition($this->definition
    ->getDataType());
}