Returns the module extension list used.
Return value
\Drupal\Core\Extension\ModuleExtensionList The module extension list.
1 call to CategorizingPluginManagerTrait::getModuleExtensionList()
- CategorizingPluginManagerTrait::getProviderName in core/
lib/ Drupal/ Core/ Plugin/ CategorizingPluginManagerTrait.php - Gets the name of a provider.
File
- core/
lib/ Drupal/ Core/ Plugin/ CategorizingPluginManagerTrait.php, line 87
Class
- CategorizingPluginManagerTrait
- Provides a trait for the CategorizingPluginManagerInterface.
Namespace
Drupal\Core\PluginCode
protected function getModuleExtensionList() : ModuleExtensionList {
// If the class has an injected module extension list, use it. Otherwise
// fall back to fetch it from the service container.
if (isset($this->moduleExtensionList)) {
return $this->moduleExtensionList;
}
return \Drupal::service('extension.list.module');
}