public function ComponentsInfo::__construct in Components! 8.2
Constructs a new ComponentsInfo object.
Parameters
\Drupal\Core\Extension\ModuleExtensionList $moduleExtensionList: The module extension list service.
\Drupal\Core\Extension\ThemeExtensionList $themeExtensionList: The theme extension list service.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.
\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The theme manager service.
\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend for storing components info flags.
File
- src/
Template/ ComponentsInfo.php, line 98
Class
- ComponentsInfo
- Loads info about components defined in themes or modules.
Namespace
Drupal\components\TemplateCode
public function __construct(ModuleExtensionList $moduleExtensionList, ThemeExtensionList $themeExtensionList, ModuleHandlerInterface $moduleHandler, ThemeManagerInterface $themeManager, CacheBackendInterface $cache) {
$this->moduleExtensionList = $moduleExtensionList;
$this->themeExtensionList = $themeExtensionList;
$this->moduleHandler = $moduleHandler;
$this->themeManager = $themeManager;
$this->cache = $cache;
}