function ThemeInfoRebuildSubscriber::__construct
Same name in other branches
- 5.x src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()
Constructs a ThemeInfoRebuildSubscriber object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory.
\Drupal\Core\Session\AccountProxyInterface $account: The current user.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
File
-
src/
EventSubscriber/ ThemeInfoRebuildSubscriber.php, line 62
Class
- ThemeInfoRebuildSubscriber
- Subscriber for force the system to rebuild the theme registry.
Namespace
Drupal\devel\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config, AccountProxyInterface $account, ThemeHandlerInterface $theme_handler) {
$this->config = $config->get('devel.settings');
$this->account = $account;
$this->themeHandler = $theme_handler;
}