You are here

public function QuickTransitionForm::__construct in Moderation Sidebar 8

QuickDraftForm constructor.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderation_info: The moderation information service.

\Drupal\content_moderation\StateTransitionValidationInterface $validation: The moderation state transition validation service.

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

File

src/Form/QuickTransitionForm.php, line 53

Class

QuickTransitionForm
The QuickTransitionForm provides quick buttons for changing transitions.

Namespace

Drupal\moderation_sidebar\Form

Code

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