StateTransitionValidation::__construct

public StateTransitionValidation::__construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory)

Constructs a new StateTransitionValidation.

Parameters

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

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

File

core/modules/content_moderation/src/StateTransitionValidation.php, line 45

Class

StateTransitionValidation
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->queryFactory = $query_factory;
}
doc_Drupal
2016-10-29 09:44:19
Comments
Leave a Comment

Please login to continue.