function content_kanban_update_8003 in Content Planner 8
Flush all entities of kanban log once as content_kanban_log structure has changed
File
- modules/
content_kanban/ content_kanban.install, line 46 - Contains install and uninstall functionality of the module.
Code
function content_kanban_update_8003() {
$database = \Drupal::database();
$entity_type = 'content_kanban_log';
$query = \Drupal::entityQuery($entity_type);
$ids = $query
->execute();
$storage_handler = \Drupal::entityTypeManager()
->getStorage($entity_type);
$entities = $storage_handler
->loadMultiple($ids);
$storage_handler
->delete($entities);
}