You are here

public function ModerationStateTransition::getToState in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ModerationStateTransition.php \Drupal\workbench_moderation\Entity\ModerationStateTransition::getToState()

Gets the to state for the given transition.

Return value

string The moderation state ID for the to state.

Overrides ModerationStateTransitionInterface::getToState

File

src/Entity/ModerationStateTransition.php, line 113

Class

ModerationStateTransition
Defines the Moderation state transition entity.

Namespace

Drupal\workbench_moderation\Entity

Code

public function getToState() {
  return $this->stateTo;
}