From ab96876edf06bfbe9e59a7237ad5b5eeac9cd655 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 15 Nov 2018 09:37:57 -0800 Subject: [PATCH 1/2] Remove hook_install() from subprofile. --- templates/profile/install.twig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/templates/profile/install.twig b/templates/profile/install.twig index eec210c4d..e3c756b89 100644 --- a/templates/profile/install.twig +++ b/templates/profile/install.twig @@ -4,11 +4,3 @@ * @file * Install, update and uninstall hooks for the {{ profile }} subprofile. */ - -/** - * Implements hook_install(). - */ -function {{ machine_name }}_install() { - // Add code here perform additional site information tasks, generate sample - // content, etc. -} From 00f7992054028883733958d783c332a5cd1fb3f0 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Fri, 16 Nov 2018 13:58:28 -0800 Subject: [PATCH 2/2] Added notes about hook_install. --- templates/profile/install.twig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/profile/install.twig b/templates/profile/install.twig index e3c756b89..18f63c35f 100644 --- a/templates/profile/install.twig +++ b/templates/profile/install.twig @@ -4,3 +4,14 @@ * @file * Install, update and uninstall hooks for the {{ profile }} subprofile. */ + +/** + * Implement hook_install() here to perform additional site information tasks, + * generate sample content, etc. + * + * Drupal 8.6 provides the ability to install sites directly from existing + * config when using the core configuration management system. Note that this + * feature cannot be used if your install profile implements hook_install(). + * + * @see https://www.drupal.org/node/2897299 + */