public function StateItem::getOriginalId in State Machine 8
Gets the original state ID.
If the state ID has been changed after the entity was constructed/loaded, the original ID will hold the previous value.
Use this as an alternative to getting the state ID from $entity->original.
Return value
string The original state ID.
Overrides StateItemInterface::getOriginalId
File
- src/
Plugin/ Field/ FieldType/ StateItem.php, line 259
Class
- StateItem
- Plugin implementation of the 'state' field type.
Namespace
Drupal\state_machine\Plugin\Field\FieldTypeCode
public function getOriginalId() {
return $this->originalValue;
}