StateTransitionValidationInterface::getValidTransitions

public StateTransitionValidationInterface::getValidTransitions(ContentEntityInterface $entity, AccountInterface $user)

Gets a list of transitions that are legal for this user on this entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to be transitioned.

\Drupal\Core\Session\AccountInterface $user: The account that wants to perform a transition.

Return value

\Drupal\content_moderation\Entity\ModerationStateTransition[] The list of transitions that are legal for this user on this entity.

File

core/modules/content_moderation/src/StateTransitionValidationInterface.php, line 38

Class

StateTransitionValidationInterface
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

public function getValidTransitions(ContentEntityInterface $entity, AccountInterface $user);
doc_Drupal
2016-10-29 09:44:20
Comments
Leave a Comment

Please login to continue.