You are here

public function ConfigPagesController::__construct in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 src/Controller/ConfigPagesController.php \Drupal\config_pages\Controller\ConfigPagesController::__construct()
  2. 8 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.

EntityTypeManagerInterface $entity_type_manager: Entity Type manager.

File

src/Controller/ConfigPagesController.php, line 71

Class

ConfigPagesController
Class controller for ConfigPage entity..

Namespace

Drupal\config_pages\Controller

Code

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