You are here

public function GatsbyAdminForm::__construct in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x src/Form/GatsbyAdminForm.php \Drupal\gatsby\Form\GatsbyAdminForm::__construct()

Class constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

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

\Drupal\gatsby\PathMapping $pathMapping: The path mapping.

Overrides ConfigFormBase::__construct

File

src/Form/GatsbyAdminForm.php, line 50

Class

GatsbyAdminForm
Defines a config form to store Gatsby configuration.

Namespace

Drupal\gatsby\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler, PathMapping $pathMapping) {
  $this->entityTypeManager = $entityTypeManager;
  $this->moduleHandler = $moduleHandler;
  $this->pathMapping = $pathMapping;
}