function ContentModerationState::canTransitionTo
Determines if the state can transition to the provided state ID.
Parameters
$to_state_id: The state to transition to.
Return value
bool TRUE if the state can transition to the provided state ID. FALSE, if not.
Overrides StateInterface::canTransitionTo
File
-
core/
modules/ content_moderation/ src/ ContentModerationState.php, line 96
Class
- ContentModerationState
- A value object representing a workflow state for content moderation.
Namespace
Drupal\content_moderationCode
public function canTransitionTo($to_state_id) {
return $this->state
->canTransitionTo($to_state_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.