You are here

public function ViewModesInventoryFactory::__construct in View Modes Inventory - Bootstrap Ready 8.2

Same name and namespace in other branches
  1. 8 src/ViewModesInventoryFactory.php \Drupal\vmi\ViewModesInventoryFactory::__construct()

Constructs the View Modes Inventory Factory object.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service. for form alters.

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

File

src/ViewModesInventoryFactory.php, line 44

Class

ViewModesInventoryFactory
View Modes Inventory Factory.

Namespace

Drupal\vmi

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $translation, ModuleHandlerInterface $module_handler) {
  $this->configFactory = $config_factory;
  $this->stringTranslation = $translation;
  $this->moduleHandler = $module_handler;
}