You are here

public function jCarouselSkinsManager::__construct in jCarousel 8.4

Same name and namespace in other branches
  1. 8.5 src/jCarouselSkinsManager.php \Drupal\jcarousel\jCarouselSkinsManager::__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

src/jCarouselSkinsManager.php, line 68
Contains \Drupal\jcarousel\jCarouselSkinsManager.

Class

jCarouselSkinsManager
Defines a jcarousel skins plugin manager to deal with skins.

Namespace

Drupal\jcarousel

Code

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('jcarousel_skins');
  $this
    ->setCacheBackend($cache_backend, 'jcarousel_skins', [
    'jcarousel_skins',
  ]);
}