function EntityModerationForm::__construct
Same name in other branches
- 8.9.x core/modules/content_moderation/src/Form/EntityModerationForm.php \Drupal\content_moderation\Form\EntityModerationForm::__construct()
- 10 core/modules/content_moderation/src/Form/EntityModerationForm.php \Drupal\content_moderation\Form\EntityModerationForm::__construct()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.