ModerationStateTransition::getFromState

public 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

core/modules/content_moderation/src/Entity/ModerationStateTransition.php, line 96

Class

ModerationStateTransition
Defines the Moderation state transition entity.

Namespace

Drupal\content_moderation\Entity

Code

public function getFromState() {
  return $this->stateFrom;
}
doc_Drupal
2016-10-29 09:28:54
Comments
Leave a Comment

Please login to continue.