You are here

public function DomainPathForm::__construct in Domain Path 8

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity manager service.

\Drupal\Core\Messenger\MessengerInterface $messenger: Messenger service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

src/Form/DomainPathForm.php, line 60

Class

DomainPathForm
Form controller for the domain_path entity edit forms.

Namespace

Drupal\domain_path\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->languageManager = $language_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->messenger = $messenger;
}