public function ExtraLinks::__construct in Admin Toolbar 8.2
Same name and namespace in other branches
- 3.x admin_toolbar_tools/src/Plugin/Derivative/ExtraLinks.php \Drupal\admin_toolbar_tools\Plugin\Derivative\ExtraLinks::__construct()
File
- admin_toolbar_tools/
src/ Plugin/ Derivative/ ExtraLinks.php, line 61
Class
- ExtraLinks
- Provides a default implementation for menu link plugins.
Namespace
Drupal\admin_toolbar_tools\Plugin\DerivativeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, RouteProviderInterface $route_provider, ThemeHandlerInterface $theme_handler, ConfigFactoryInterface $config_factory) {
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
$this->routeProvider = $route_provider;
$this->themeHandler = $theme_handler;
$this->config = $config_factory
->get('admin_toolbar_tools.settings');
}