public function ThemeInfoRebuildSubscriber::__construct in Devel 4.x
Same name and namespace in other branches
- 8.3 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()
- 8 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct()
- 8.2 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;
}