Skip to content

Commit 1d868b0

Browse files
committed
update: remove old tutorials
1 parent e8a70fb commit 1d868b0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎oit.install‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,3 +556,12 @@ function oit_update_10011() {
556556
'status_code' => '301',
557557
])->save();
558558
}
559+
560+
/**
561+
* Delete old tutorials.
562+
*/
563+
function oit_update_10012() {
564+
$controller = \Drupal::entityTypeManager()->getStorage('node');
565+
$entities = $controller->loadMultiple([1560, 1561, 1563, 1566, 1568, 19726, 29301, 31301]);
566+
$controller->delete($entities);
567+
}

0 commit comments

Comments
 (0)