function content_kanban_entity_presave in Content Planner 8
Implements hook_ENTITY_TYPE_presave().
File
- modules/
content_kanban/ content_kanban.module, line 75 - Contains content_kanban.module.
Code
function content_kanban_entity_presave(EntityInterface $entity) {
// Check to be content entity.
if ($entity instanceof ContentEntityInterface) {
//@var $moderation_information \Drupal\content_kanban\KanbanWorkflowService
$kanban_workflow_service = \Drupal::service('content_kanban.kanban_workflow_service');
$kanban_workflow_service
->onEntityPresave($entity, \Drupal::currentUser());
}
}