You are here

public function StyleDiscovery::__construct in Paragraphs Collection 8

Constructs a new YamlStyleDiscovery.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

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

\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory object.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

File

src/StyleDiscovery.php, line 97

Class

StyleDiscovery
Provides common helper methods for style discovery. @todo Create documentation for style discovery https://www.drupal.org/node/2837995

Namespace

Drupal\paragraphs_collection

Code

public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ControllerResolverInterface $controller_resolver, CacheBackendInterface $cache_backend, ThemeHandlerInterface $theme_handler, ConfigFactoryInterface $config, AccountProxyInterface $current_user) {
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->stringTranslation = $string_translation;
  $this->controllerResolver = $controller_resolver;
  $this->cache = $cache_backend;
  $this->configFactory = $config;
  $this->currentUser = $current_user;
}