commit acdaa9e0eab2f1d0e5dc93ad89d454d4b59796c4 Author: Sam Date: Wed Feb 20 08:50:56 2019 +0800 Foo diff --git a/preview_link.post_update.php b/preview_link.install similarity index 66% rename from preview_link.post_update.php rename to preview_link.install index 962f359..fd7a9a0 100644 --- a/preview_link.post_update.php +++ b/preview_link.install @@ -2,14 +2,14 @@ /** * @file - * Post update file. + * Install file. */ /** * Install the settings object. */ -function preview_link_post_update_install_config() { +function preview_link_update_8101() { $config = \Drupal::configFactory()->getEditable('preview_link.settings'); $config->set('enabled_entity_types', []); - $config->save(); + $config->save(TRUE); }