You are here

public function StateItem::getOriginalLabel in State Machine 8

Gets the label of the original state.

Return value

string The label of the original state.

Overrides StateItemInterface::getOriginalLabel

File

src/Plugin/Field/FieldType/StateItem.php, line 280

Class

StateItem
Plugin implementation of the 'state' field type.

Namespace

Drupal\state_machine\Plugin\Field\FieldType

Code

public function getOriginalLabel() {
  return $this
    ->getStateLabel($this->originalValue);
}