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

Gets the definition of the plugin implementation.

Return value

\Drupal\Component\Plugin\Definition\PluginDefinitionInterface|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());
}