You are here

public function TocTypeForm::__construct in TOC API 8

Constructs a new TocTypeForm.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity query factory.

\Drupal\Core\Theme\Registry $theme_registry: The theme registry.

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

File

src/TocTypeForm.php, line 57

Class

TocTypeForm
Base form for TOC type add and edit forms.

Namespace

Drupal\toc_api

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Registry $theme_registry, ThemeManagerInterface $theme_manager, ThemeInitializationInterface $theme_initialization) {
  $this->entityTypeManager = $entity_type_manager;
  $this->themeRegistry = $theme_registry;
  $this->themeManager = $theme_manager;
  $this->themeInitialization = $theme_initialization;
}