From 9559627382612bd2c8ed1df7f590d510a9bdae99 Mon Sep 17 00:00:00 2001 From: Mansimran7 Date: Tue, 2 Jul 2019 16:35:03 +0530 Subject: added all the .install files and views yml files --- modules/mansimran/fest/fest.install | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/mansimran/fest/fest.install (limited to 'modules/mansimran/fest/fest.install') diff --git a/modules/mansimran/fest/fest.install b/modules/mansimran/fest/fest.install new file mode 100644 index 0000000..789d440 --- /dev/null +++ b/modules/mansimran/fest/fest.install @@ -0,0 +1,27 @@ + +getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'fest'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} + -- cgit