You are here

public function ModerationStateTransition::getFromState in Workbench Moderation 8.2

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

Gets the from state for the given transition.

Return value

string The moderation state ID for the from state.

Overrides ModerationStateTransitionInterface::getFromState

File

src/Entity/ModerationStateTransition.php, line 99

Class

ModerationStateTransition
Defines the Moderation state transition entity.

Namespace

Drupal\workbench_moderation\Entity

Code

public function getFromState() {
  return $this->stateFrom;
}