function PreprocessHooks::__construct
Same name in this branch
- main core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::__construct()
Same name and namespace in other branches
- 11.x core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::__construct()
- 11.x core/themes/default_admin/src/Hook/PreprocessHooks.php \Drupal\default_admin\Hook\PreprocessHooks::__construct()
Constructs the theme related hooks.
File
-
core/
themes/ default_admin/ src/ Hook/ PreprocessHooks.php, line 47
Class
- PreprocessHooks
- Provides preprocess implementations.
Namespace
Drupal\default_admin\HookCode
public function __construct(protected readonly ThemeManagerInterface $themeManager, protected readonly RequestStack $requestStack, protected readonly RouteMatchInterface $currentRouteMatch, protected readonly ConfigFactoryInterface $configFactory, protected readonly AccountInterface $currentUser, protected readonly EntityTypeManagerInterface $entityTypeManager, protected readonly BlockManagerInterface $blockManager, protected readonly RendererInterface $renderer, protected readonly ModuleHandlerInterface $moduleHandler) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.