function 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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.