diff --git a/composer.json b/composer.json index af17028f..99a74ecb 100644 --- a/composer.json +++ b/composer.json @@ -9,9 +9,6 @@ "patches": { "drupal/core": { "Add a token for publication status - https://www.drupal.org/project/drupal/issues/3073554": "https://www.drupal.org/files/issues/2019-08-09/3073554_10.patch" - }, - "drupal/linkit": { - "Unpublished nodes not included even when option is selected - https://www.drupal.org/project/linkit/issues/3049946#comment-14953079": "https://www.drupal.org/files/issues/2023-03-06/linkit-unpublished-nodes-not-included-3049946-32.patch" } } }, @@ -33,4 +30,4 @@ "dpc-sdp/tide_api:^3.0.0": "Allows to use Drupal in headless mode" }, "type": "drupal-module" -} +} \ No newline at end of file diff --git a/config/install/linkit.linkit_profile.site_content.yml b/config/install/linkit.linkit_profile.site_content.yml index 3055ff78..bd9d1110 100644 --- a/config/install/linkit.linkit_profile.site_content.yml +++ b/config/install/linkit.linkit_profile.site_content.yml @@ -3,8 +3,6 @@ status: true dependencies: module: - node -_core: - default_config_hash: i9NpUDkHXWv0nBVl_hba1YmpdozfyJrBYe5-8njLB4E id: site_content label: 'Site Content' description: '' @@ -20,4 +18,13 @@ matchers: group_by_bundle: true substitution_type: canonical limit: 100 - + e91d515d-454e-47d4-adf7-6fc13b8f66cd: + id: email + uuid: e91d515d-454e-47d4-adf7-6fc13b8f66cd + settings: { } + weight: 0 + 7802f100-9fda-4458-8416-0f537a7b851d: + id: phone + uuid: 7802f100-9fda-4458-8416-0f537a7b851d + settings: { } + weight: 0 \ No newline at end of file diff --git a/modules/tide_site_preview/config/optional/block.block.claro_tide_site_preview_links.yml b/modules/tide_site_preview/config/optional/block.block.claro_tide_site_preview_links.yml new file mode 100644 index 00000000..1ed0e658 --- /dev/null +++ b/modules/tide_site_preview/config/optional/block.block.claro_tide_site_preview_links.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - tide_site_preview + theme: + - claro +id: claro_tide_site_preview_links +theme: claro +region: highlighted +weight: 0 +provider: null +plugin: tide_site_preview_links_block +settings: + id: tide_site_preview_links_block + label: 'Click the links below to preview this revision on frontend sites' + label_display: visible + provider: tide_site_preview + open_new_window: 1 +visibility: { } diff --git a/tide_site.install b/tide_site.install index 63db3e0a..451c919a 100644 --- a/tide_site.install +++ b/tide_site.install @@ -646,3 +646,25 @@ function tide_site_update_8024() { } $config->save(); } + +/** + * Update linkit.linkit_profile.site_content config. + */ +function tide_site_update_8025() { + $configs = [ + 'linkit.linkit_profile.site_content' => 'linkit_profile', + ]; + \Drupal::moduleHandler()->loadInclude('tide_core', 'inc', 'includes/helpers'); + $config_location = [__DIR__ . '/config/install']; + foreach ($configs as $config => $type) { + $storage = \Drupal::entityTypeManager()->getStorage($type); + $id = substr($config, strrpos($config, '.') + 1); + $config_entity = $storage->load($id); + if ($config_entity !== NULL){ + $storage->delete([$config_entity]); + } + $config_read = _tide_read_config($config, $config_location, FALSE); + $new_config_entity = $storage->createFromStorageRecord($config_read); + $new_config_entity->save(); + } +}