You are here

public function ConfigPagesController::__construct in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Controller/ConfigPagesController.php \Drupal\config_pages\Controller\ConfigPagesController::__construct()
  2. 8.2 src/Controller/ConfigPagesController.php \Drupal\config_pages\Controller\ConfigPagesController::__construct()

Constructs a ConfigPages object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $config_pages_storage: The config page storage.

\Drupal\Core\Entity\EntityStorageInterface $config_pages_type_storage: The config page type storage.

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

File

src/Controller/ConfigPagesController.php, line 64

Class

ConfigPagesController

Namespace

Drupal\config_pages\Controller

Code

public function __construct(EntityStorageInterface $config_pages_storage, EntityStorageInterface $config_pages_type_storage, ThemeHandlerInterface $theme_handler, QueryFactory $entity_query, EntityTypeManagerInterface $entity_type_manager) {
  $this->ConfigPagesStorage = $config_pages_storage;
  $this->ConfigPagesTypeStorage = $config_pages_type_storage;
  $this->themeHandler = $theme_handler;
  $this->entityQuery = $entity_query;
  $this->entityTypeManager = $entity_type_manager;
}