You are here

public function MasonryService::__construct in Masonry API 8

Constructs a MasonryService object.

Parameters

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

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Services/MasonryService.php, line 66
Masonry service file.

Class

MasonryService
Wrapper methods for Masonry API methods.

Namespace

Drupal\masonry\Services

Code

public function __construct(ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, LanguageManager $language_manager, ConfigFactoryInterface $config_factory) {
  $this->moduleHandler = $module_handler;
  $this->themeManager = $theme_manager;
  $this->languageManager = $language_manager;
  $this->configFactory = $config_factory;
}