function FieldTypeCategoryManager::getDiscovery
Same name in other branches
- 11.x core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php \Drupal\Core\Field\FieldTypeCategoryManager::getDiscovery()
Overrides DefaultPluginManager::getDiscovery
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypeCategoryManager.php, line 70
Class
- FieldTypeCategoryManager
- Defines a field type category info plugin manager.
Namespace
Drupal\Core\FieldCode
protected function getDiscovery() : YamlDiscovery {
if (!isset($this->discovery)) {
$directories = [
'core' => $this->root . '/core',
];
$directories += $this->moduleHandler
->getModuleDirectories();
$this->discovery = new YamlDiscovery('field_type_categories', $directories);
$this->discovery
->addTranslatableProperty('label')
->addTranslatableProperty('description');
}
return $this->discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.