EntityModerationForm::__construct

public EntityModerationForm::__construct(ModerationInformationInterface $moderation_info, StateTransitionValidation $validation, EntityTypeManagerInterface $entity_type_manager)

EntityModerationForm constructor.

Parameters

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

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

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

File

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

Class

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

Namespace

Drupal\content_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;
}
doc_Drupal
2016-10-29 09:07:14
Comments
Leave a Comment

Please login to continue.