public function EntityModerationForm::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\TimeInterface $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\FormCode
public function __construct(ModerationInformationInterface $moderation_info, StateTransitionValidationInterface $validation, TimeInterface $time) {
$this->moderationInfo = $moderation_info;
$this->validation = $validation;
$this->time = $time;
}