function workflow_workflow_type_insert in Workflow 8
Implements hook_ENTITY_TYPE_insert().
Is called when adding a new Workflow type. The technical name for the Workflow entity is 'workflow_type'.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An Entity.
File
- ./
workflow.module, line 163 - Support workflows made up of arbitrary states.
Code
function workflow_workflow_type_insert(EntityInterface $entity) {
WorkflowManager::participateUserRoles($entity);
}