public function StateItemInterface::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.
1 method overrides StateItemInterface::getOriginalId()
- StateItem::getOriginalId in src/
Plugin/ Field/ FieldType/ StateItem.php - Gets the original state ID.
File
- src/
Plugin/ Field/ FieldType/ StateItemInterface.php, line 32
Class
- StateItemInterface
- Defines the interface for state field items.
Namespace
Drupal\state_machine\Plugin\Field\FieldTypeCode
public function getOriginalId();