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\FieldTypeCode
public function getOriginalLabel() {
return $this
->getStateLabel($this->originalValue);
}