Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StateTransitionValidationInterface.php

function StateTransitionValidationInterface::getValidTransitions

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\workflows\Transition[] The list of transitions that are legal for this user on this entity.

File

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

Class

StateTransitionValidationInterface
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

public function getValidTransitions(ContentEntityInterface $entity, AccountInterface $user);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal