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);
Please login to continue.