Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getPluginDefinition()
- 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\TypedDataCode
public function getPluginDefinition() {
return $this
->getTypedDataManager()
->getDefinition($this->definition
->getDataType());
}