You are here

public static function WorkflowManagerInterface::getPreviousStateId in Workflow 8

Gets the previous state ID of a given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity:

string $field_name:

Return value

string The ID of the previous state.

1 method overrides WorkflowManagerInterface::getPreviousStateId()
WorkflowManager::getPreviousStateId in src/Entity/WorkflowManager.php
Gets the previous state ID of a given entity.

File

src/Entity/WorkflowManagerInterface.php, line 151

Class

WorkflowManagerInterface
Provides an interface for workflow manager.

Namespace

Drupal\workflow\Entity

Code

public static function getPreviousStateId(EntityInterface $entity, $field_name = '');