You are here

public function GridLayoutDiscovery::__construct in Paragraphs Collection 8

Constructs a new YamlStyleDiscovery.

Parameters

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

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

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

File

src/GridLayoutDiscovery.php, line 64

Class

GridLayoutDiscovery
Provides common helper methods for style discovery.

Namespace

Drupal\paragraphs_collection

Code

public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, ThemeHandlerInterface $theme_handler) {
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->cache = $cache_backend;
}