public function ToolbarController::__construct in Admin Toolbar 8
Same name and namespace in other branches
- 8.2 admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::__construct()
- 3.x admin_toolbar_tools/src/Controller/ToolbarController.php \Drupal\admin_toolbar_tools\Controller\ToolbarController::__construct()
Constructs a ToolbarController object.
Parameters
\Drupal\Core\CronInterface $cron: A cron instance.
\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: A menu link manager instance.
\Drupal\Core\Menu\ContextualLinkManagerInterface $contextualLinkManager: A context link manager instance.
\Drupal\Core\Menu\LocalTaskManagerInterface $localTaskLinkManager: A local task manager instance.
\Drupal\Core\Menu\LocalActionManagerInterface $localActionLinkManager: A local action manager instance.
\Drupal\Core\Cache\CacheBackendInterface $cacheRender: A cache backend interface instance.
\Drupal\Component\Datetime\TimeInterface $time: A date time instance.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: A request stack symfony instance.
\Drupal\Core\Plugin\CachedDiscoveryClearerInterface $plugin_cache_clearer: A plugin cache clear instance.
\Drupal\Core\Cache\CacheBackendInterface $cache_menu: A cache menu instance.
\Drupal\Core\Template\TwigEnvironment $twig: A TwigEnvironment instance.
File
- admin_toolbar_tools/
src/ Controller/ ToolbarController.php, line 129
Class
- ToolbarController
- Class ToolbarController.
Namespace
Drupal\admin_toolbar_tools\ControllerCode
public function __construct(CronInterface $cron, MenuLinkManagerInterface $menuLinkManager, ContextualLinkManagerInterface $contextualLinkManager, LocalTaskManagerInterface $localTaskLinkManager, LocalActionManagerInterface $localActionLinkManager, CacheBackendInterface $cacheRender, TimeInterface $time, RequestStack $request_stack, CachedDiscoveryClearerInterface $plugin_cache_clearer, CacheBackendInterface $cache_menu, TwigEnvironment $twig) {
$this->cron = $cron;
$this->menuLinkManager = $menuLinkManager;
$this->contextualLinkManager = $contextualLinkManager;
$this->localTaskLinkManager = $localTaskLinkManager;
$this->localActionLinkManager = $localActionLinkManager;
$this->cacheRender = $cacheRender;
$this->time = $time;
$this->requestStack = $request_stack;
$this->pluginCacheClearer = $plugin_cache_clearer;
$this->cacheMenu = $cache_menu;
$this->twig = $twig;
}