You are here

public function EntityModerationForm::__construct in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/Form/EntityModerationForm.php \Drupal\workbench_moderation\Form\EntityModerationForm::__construct()

EntityModerationForm constructor.

Parameters

\Drupal\workbench_moderation\ModerationInformationInterface $moderation_info: Moderation info service.

\Drupal\workbench_moderation\StateTransitionValidation $validation: State transition validation service.

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

File

src/Form/EntityModerationForm.php, line 51

Class

EntityModerationForm
Defines a form for entity moderation.

Namespace

Drupal\workbench_moderation\Form

Code

public function __construct(ModerationInformationInterface $moderation_info, StateTransitionValidation $validation, EntityTypeManagerInterface $entity_type_manager) {
  $this->moderationInfo = $moderation_info;
  $this->validation = $validation;
  $this->entityTypeManager = $entity_type_manager;
}