function workflow_entity_insert in Workflow 8
Implements hook_entity_insert().
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An Entity.
File
- ./
workflow.module, line 173 - Support workflows made up of arbitrary states.
Code
function workflow_entity_insert(EntityInterface $entity) {
// Execute updates in hook_presave() to revert executions,
// Execute inserts in hook_insert, to have the Entity ID determined.
_workflow_execute_transitions($entity);
}