function FieldTypeCategoryManager::alterDefinitions
Same name in other branches
- 10 core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php \Drupal\Core\Field\FieldTypeCategoryManager::alterDefinitions()
Overrides DefaultPluginManager::alterDefinitions
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypeCategoryManager.php, line 85
Class
- FieldTypeCategoryManager
- Defines a field type category info plugin manager.
Namespace
Drupal\Core\FieldCode
protected function alterDefinitions(&$definitions) : void {
parent::alterDefinitions($definitions);
if (!isset($definitions[FieldTypeCategoryManagerInterface::FALLBACK_CATEGORY])) {
throw new \LogicException('Missing fallback category.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.