You are here

public function EntityModerationForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/Form/EntityModerationForm.php \Drupal\content_moderation\Form\EntityModerationForm::__construct()

EntityModerationForm constructor.

Parameters

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

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

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

File

core/modules/content_moderation/src/Form/EntityModerationForm.php, line 53

Class

EntityModerationForm
The EntityModerationForm provides a simple UI for changing moderation state.

Namespace

Drupal\content_moderation\Form

Code

public function __construct(ModerationInformationInterface $moderation_info, StateTransitionValidationInterface $validation, Time $time) {
  $this->moderationInfo = $moderation_info;
  $this->validation = $validation;
  $this->time = $time;
}