public function StateItem::getId in State Machine 8
Gets the current state ID.
Return value
string The current state ID.
Overrides StateItemInterface::getId
1 call to StateItem::getId()
- StateItem::applyTransition in src/
Plugin/ Field/ FieldType/ StateItem.php - Applies the given transition, changing the current state.
File
- src/
Plugin/ Field/ FieldType/ StateItem.php, line 266
Class
- StateItem
- Plugin implementation of the 'state' field type.
Namespace
Drupal\state_machine\Plugin\Field\FieldTypeCode
public function getId() {
return $this->value;
}