AttributeClassDiscovery::$rootTwoLevelNamespaces
List of root namespaces abbreviated to two levels.
This list of namespaces is derived from the namespaces to look for plugin implementations in, with each namespace in the list reduced to the first two levels only, such as "Drupal\Component". Checking class namespaces against this list provides a way to check that dependencies' classes exist without using the "*_exists()" functions, which loads every class into memory and can throw errors.
Type: list
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ AttributeClassDiscovery.php, line 43
Class
- AttributeClassDiscovery
- Defines a discovery mechanism to find plugins with attributes.
Namespace
Drupal\Component\Plugin\DiscoveryCode
protected readonly array $rootTwoLevelNamespaces;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.