function DiscoveryCachedTrait::getDefinition
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait::getDefinition()
- 8.9.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait::getDefinition()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait::getDefinition()
Overrides DiscoveryTrait::getDefinition
20 calls to DiscoveryCachedTrait::getDefinition()
- ArchiverManager::createInstance in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - EntityTypeManager::getDefinition in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - FieldTypePluginManager::getDefaultFieldSettings in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php - FieldTypePluginManager::getDefaultStorageSettings in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php - FieldTypePluginManager::getFieldSettingsSummary in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php
3 methods override DiscoveryCachedTrait::getDefinition()
- EntityTypeManager::getDefinition in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - StaticDiscoveryDecorator::getDefinition in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - TypedConfigManager::getDefinition in core/
lib/ Drupal/ Core/ Config/ TypedConfigManager.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DiscoveryCachedTrait.php, line 19
Class
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
// Fetch definitions if they're not loaded yet.
if (!isset($this->definitions)) {
$this->getDefinitions();
}
return $this->doGetDefinition($this->definitions, $plugin_id, $exception_on_invalid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.