public function ContentModerationState::canTransitionTo in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\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);
}