You are here

public function ThemeLocalTask::__construct in Skinr 8.2

Constructs a new ThemeLocalTask.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

File

skinr_ui/src/Plugin/Derivative/ThemeLocalTask.php, line 43
Contains \Drupal\skinr_ui\Plugin\Derivative\ThemeLocalTask.

Class

ThemeLocalTask
Provides dynamic tabs based on active themes.

Namespace

Drupal\skinr_ui\Plugin\Derivative

Code

public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) {
  $this->config = $config_factory
    ->get('system.theme');
  $this->themeHandler = $theme_handler;
}