From de45f2c3c24bdb8c41ae02d4e496a4f0323f50ab Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Wed, 13 Dec 2023 12:27:01 -0500 Subject: [PATCH] Custom data-dictionary identifier --- modules/metastore/metastore.install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/metastore/metastore.install b/modules/metastore/metastore.install index cfac45fe88..ea47922ee2 100644 --- a/modules/metastore/metastore.install +++ b/modules/metastore/metastore.install @@ -114,3 +114,12 @@ function metastore_update_8007() { $config = \Drupal::service('config.factory')->getEditable('node.type.data'); $config->set('preview_mode', 1)->save(); } + + +/** + * Restore the preveiw button on data form. + */ +function metastore_update_8008() { + $all = \Drupal::service('dkan.metastore.service')->getAll('data-dictionary'); + print_r($all) +}