public function BreakpointManager::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::__construct()
Constructs a new BreakpointManager instance.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
Overrides DefaultPluginManager::__construct
File
- core/
modules/ breakpoint/ src/ BreakpointManager.php, line 108 - Contains \Drupal\breakpoint\BreakpointManager.
Class
- BreakpointManager
- Defines a breakpoint plugin manager to deal with breakpoints.
Namespace
Drupal\breakpointCode
public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache_backend, TranslationInterface $string_translation) {
$this->factory = new ContainerFactory($this);
$this->moduleHandler = $module_handler;
$this->themeHandler = $theme_handler;
$this
->setStringTranslation($string_translation);
$this
->alterInfo('breakpoints');
$this
->setCacheBackend($cache_backend, 'breakpoints', array(
'breakpoints',
));
}