You are here

public function WorkflowD7Base::entitySave in Workflow 7

1 call to WorkflowD7Base::entitySave()
WorkflowItem::update in includes/Field/WorkflowItem.php
Implements hook_field_update() -> FieldItemInterface::update()

File

includes/Field/WorkflowD7Base.php, line 75
Contains workflow\includes\Field\WorkflowD7Base.

Class

WorkflowD7Base

Code

public function entitySave($entity_type, $entity) {
  return $entity_type == 'node' ? node_save($entity) : entity_save($entity_type, $entity);
}