public function AccessController::__construct in Theme permission 8
Constructs a AccessController.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: A request stack symfony instance.
\Drupal\system\SystemManager $systemManager: System manager service.
\Drupal\Core\Theme\ThemeAccessCheck $theme_access: The theme access checker service.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.
Overrides SystemController::__construct
File
- src/
Controller/ AccessController.php, line 58
Class
- AccessController
- Access Controller.
Namespace
Drupal\theme_permission\ControllerCode
public function __construct(AccountInterface $current_user, RequestStack $request_stack, SystemManager $systemManager, ThemeAccessCheck $theme_access, FormBuilderInterface $form_builder, ThemeHandlerInterface $theme_handler, MenuLinkTreeInterface $menu_link_tree) {
parent::__construct($systemManager, $theme_access, $form_builder, $theme_handler, $menu_link_tree);
$this->currentUser = $current_user;
$this->requestStack = $request_stack;
}