Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
feat: Drupal 10 update
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao committed Jun 30, 2023
1 parent 390fcb3 commit e8fb662
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 702 deletions.
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"require": {
"dpc-sdp/tide_core": "^3.2.5",
"dpc-sdp/tide_media": "^3.0.8",
"drupal/create_menus_permission": "^1.0",
"dpc-sdp/tide_core": "dev-feature/SRM-870-d10-update as 3.2.11",
"dpc-sdp/tide_media": "dev-feature/SRM-870-939-d10-update-d10 as 3.0.12",
"drupal/create_menus_permission": "dev-drupal_10_compatibility",
"drupal/key_value_field": "^1.3"
},
"suggest": {
Expand All @@ -15,7 +15,13 @@
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
"url": "https://packages.drupal.org/8",
"exclude": ["drupal/create_menus_permission"]
},
"drupal/create_menus_permission": {
"type": "vcs",
"no-api": true,
"url": "https://github.com/dpc-sdp/create_menus_permission.git"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion dev-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
# stable version.
#
# Uncomment and set the Dev-Tools's commit value and commit this change.
# export GH_COMMIT=COMMIT_SHA
export GH_COMMIT=f330a83a62d834b7a4f68382d6e76e08f529e311

bash <(curl -L https://raw.githubusercontent.com/dpc-sdp/dev-tools/master/install?"$(date +%s)") "$@"
28 changes: 0 additions & 28 deletions modules/tide_site_preview/tide_site_preview.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Tide Site install file.
*/

use Drupal\block\Entity\Block;
use Drupal\user\Entity\Role;

/**
Expand All @@ -22,30 +21,3 @@ function tide_site_preview_install() {
}
}
}

/**
* Remove block.block.seven_tide_site_preview_links.
*/
function tide_site_preview_update_8001() {
$block = Block::load('seven_tide_site_preview_links');
if ($block !== NULL) {
$block->delete();
}
}

/**
* Install block.block.claro_tide_site_preview_links.
*/
function tide_site_preview_update_8002() {
\Drupal::moduleHandler()->loadInclude('tide_core', 'inc', 'includes/helpers');
$config_location = [\Drupal::service('extension.list.module')->getPath('tide_site_preview') . '/config/optional'];
$storage = \Drupal::entityTypeManager()->getStorage('block');
$id = 'claro_tide_site_preview_links';
$config_entity = $storage->load($id);
if ($config_entity !== NULL) {
$storage->delete([$config_entity]);
}
$config_read = _tide_read_config('block.block.claro_tide_site_preview_links', $config_location, FALSE);
$new_config_entity = $storage->createFromStorageRecord($config_read);
$new_config_entity->save();
}
17 changes: 0 additions & 17 deletions modules/tide_site_simple_sitemap/tide_site_simple_sitemap.install
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ function tide_site_simple_sitemap_install($is_syncing) {
_update_settings();
}

/**
* Updates bundle settings.
*/
function tide_site_simple_sitemap_update_8008(&$sandbox) {
_update_settings();
}

/**
* Update for sitemap 4.x.
*/
Expand Down Expand Up @@ -83,13 +76,3 @@ function _update_settings() {
}
}
}

/**
* Removes simple_sitemap_site table.
*/
function tide_site_simple_sitemap_update_8009() {
$hasTable = \Drupal::database()->schema()->tableExists('simple_sitemap_site');
if ($hasTable === TRUE) {
\Drupal::database()->schema()->dropTable('simple_sitemap_site');
}
}
2 changes: 1 addition & 1 deletion tide_site.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Tide site'
description: 'Functionality to allow post content to multiple sites and sections.'
type: module
package: Tide
core_version_requirement: ^8.9 || ^9
core_version_requirement: ^9.5 || ^10
dependencies:
- drupal:field
- drupal:field_ui
Expand Down
Loading

0 comments on commit e8fb662

Please sign in to comment.