function EntityTypeManager::findDefinitions
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::findDefinitions()
- 10 core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::findDefinitions()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::findDefinitions()
Overrides DefaultPluginManager::findDefinitions
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php, line 115
Class
- EntityTypeManager
- Manages entity type plugin definitions.
Namespace
Drupal\Core\EntityCode
protected function findDefinitions() {
$definitions = $this->getDiscovery()
->getDefinitions();
$this->moduleHandler
->invokeAllWith('entity_type_build', function (callable $hook, string $module) use (&$definitions) {
$hook($definitions);
});
foreach ($definitions as $plugin_id => $definition) {
$this->processDefinition($definition, $plugin_id);
}
$this->alterDefinitions($definitions);
return $definitions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.