You are here

public function PresetFormBase::__construct in Video 8.2

Construct the PresetFormBase.

For simple entity forms, there's no need for a constructor. Our preset form base, however, requires an entity query factory to be injected into it from the container. We later use this query factory to build an entity query for the exists() method.

Parameters

\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: An entity query factory for the preset entity type.

File

modules/video_transcode/src/Form/PresetFormBase.php, line 42

Class

PresetFormBase
Class PresetFormBase.

Namespace

Drupal\video_transcode\Form

Code

public function __construct(EntityTypeManager $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}