Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand All @@ -33,4 +30,4 @@
"dpc-sdp/tide_api:^3.0.0": "Allows to use Drupal in headless mode"
},
"type": "drupal-module"
}
}
13 changes: 10 additions & 3 deletions config/install/linkit.linkit_profile.site_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ status: true
dependencies:
module:
- node
_core:
default_config_hash: i9NpUDkHXWv0nBVl_hba1YmpdozfyJrBYe5-8njLB4E
id: site_content
label: 'Site Content'
description: ''
Expand All @@ -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
Original file line number Diff line number Diff line change
@@ -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: { }
22 changes: 22 additions & 0 deletions tide_site.install
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}