Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / dashboard_regions_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/dashboard_regions_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/dashboard_regions_alter.twig
new file mode 100644 (file)
index 0000000..f7bfa51
--- /dev/null
@@ -0,0 +1,7 @@
+/**
+ * Implements hook_dashboard_regions_alter().
+ */
+function {{ machine_name }}_dashboard_regions_alter(&$regions) {
+  // Remove the sidebar region defined by the core dashboard module.
+  unset($regions['dashboard_sidebar']);
+}