StateTransitionValidationInterface::isTransitionAllowed

public StateTransitionValidationInterface::isTransitionAllowed(ModerationStateInterface $from, ModerationStateInterface $to)

Determines a transition allowed.

Parameters

\Drupal\content_moderation\ModerationStateInterface $from: The origin state.

\Drupal\content_moderation\ModerationStateInterface $to: The destination state.

Return value

bool Is the transition allowed.

File

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

Class

StateTransitionValidationInterface
Validates whether a certain state transition is allowed.

Namespace

Drupal\content_moderation

Code

public function isTransitionAllowed(ModerationStateInterface $from, ModerationStateInterface $to);
doc_Drupal
2016-10-29 09:44:20
Comments
Leave a Comment

Please login to continue.