Skip to content

Commit

Permalink
Deprecate news_rss migration configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegl committed Feb 28, 2025
1 parent 3ae89cf commit 9e154ec
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 211 deletions.
17 changes: 0 additions & 17 deletions config/default/config_pages.type.news_rss.yml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions config/default/field.storage.config_pages.field_news_rss.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docroot/modules/humsci/hs_migrate/hs_migrate.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ services:
arguments: ['@entity_type.manager']
tags:
- { name: 'event_subscriber' }
hs_migrate.migration_overrider:
class: Drupal\hs_migrate\Overrides\MigrationOverrides
arguments: ['@config_pages.loader', '@entity_type.manager']
tags:
- {name: config.factory.override, priority: 5}
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public function onConfigImport(ConfigImporterEvent $event) {
}
$urls = [
'field_news_xml' => $this->getConfigPageValue('hs_migrate_news', 'field_news_xml_feed'),
'field_people_xml' => $this->getConfigPageValue('d7_people', 'field_d7_people_xml_url'),
'field_publications_xml' => $this->getConfigPageValue('publications', 'field_xml_url'),
];

$urls = array_filter($urls);
Expand All @@ -65,15 +63,13 @@ public function onConfigImport(ConfigImporterEvent $event) {
$field_storage = $this->entityTypeManager->getStorage('field_config');
$fields = [
'config_pages.hs_migrate_news.field_news_xml_feed',
'config_pages.d7_people.field_d7_people_xml_url',
'config_pages.publications.field_xml_url',
];
foreach ($field_storage->loadMultiple($fields) as $field) {
$field->delete();
}

$page_storage = $this->entityTypeManager->getStorage('config_pages_type');
$pages = ['hs_migrate_news', 'd7_people', 'publications'];
$pages = ['hs_migrate_news'];
foreach ($page_storage->loadMultiple($pages) as $page) {
$page->delete();
}
Expand Down

This file was deleted.

0 comments on commit 9e154ec

Please sign in to comment.