Skip to content

Commit

Permalink
Merge pull request #120 from openeuropa/EWPP-2827
Browse files Browse the repository at this point in the history
EWPP-2827: URL change of core site.
  • Loading branch information
upchuk authored Dec 12, 2022
2 parents 03b573b + 252f870 commit 32fafb7
Show file tree
Hide file tree
Showing 30 changed files with 1,247 additions and 1,155 deletions.
46 changes: 23 additions & 23 deletions config/install/oe_corporate_blocks.ec_data.footer.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
langcode: en
corporate_site_link:
href: 'https://ec.europa.eu/info/index_en'
href: 'https://commission.europa.eu/index_en'
label: 'European Commission website'
class_navigation:
-
href: 'https://ec.europa.eu/info/strategy_en'
href: 'https://commission.europa.eu/strategy_en'
label: Strategy
-
href: 'https://ec.europa.eu/info/about-european-commission_en'
href: 'https://commission.europa.eu/about-european-commission_en'
label: 'About the European Commission'
-
href: 'https://ec.europa.eu/info/business-economy-euro_en'
href: 'https://commission.europa.eu/business-economy-euro_en'
label: 'Business, Economy, Euro'
-
href: 'https://ec.europa.eu/info/live-work-travel-eu_en'
href: 'https://commission.europa.eu/live-work-travel-eu_en'
label: 'Live, work, travel in the EU'
-
href: 'https://ec.europa.eu/info/law_en'
href: 'https://commission.europa.eu/law_en'
label: Law
-
href: 'https://ec.europa.eu/info/funding-tenders_en'
href: 'https://commission.europa.eu/funding-tenders_en'
label: 'Funding, Tenders'
-
href: 'https://ec.europa.eu/info/research-and-innovation_en'
href: 'https://commission.europa.eu/research-and-innovation_en'
label: 'Research and innovation'
-
href: 'https://ec.europa.eu/info/energy-climate-change-environment_en'
href: 'https://commission.europa.eu/energy-climate-change-environment_en'
label: 'Energy, Climate change, Environment'
-
href: 'https://ec.europa.eu/info/education_en'
href: 'https://commission.europa.eu/education_en'
label: Education
-
href: 'https://ec.europa.eu/info/aid-development-cooperation-fundamental-rights_en'
href: 'https://commission.europa.eu/aid-development-cooperation-fundamental-rights_en'
label: 'Aid, Development cooperation, Fundamental rights'
-
href: 'https://ec.europa.eu/info/food-farming-fisheries_en'
href: 'https://commission.europa.eu/food-farming-fisheries_en'
label: 'Food, Farming, Fisheries'
-
href: 'https://ec.europa.eu/info/eu-regional-and-urban-development_en'
href: 'https://commission.europa.eu/eu-regional-and-urban-development_en'
label: 'EU regional and urban development'
-
href: 'https://ec.europa.eu/info/jobs-european-commission_en'
href: 'https://commission.europa.eu/jobs-european-commission_en'
label: 'Jobs at the European Commission'
-
href: 'https://ec.europa.eu/info/statistics_en'
href: 'https://commission.europa.eu/statistics_en'
label: Statistics
-
href: 'https://ec.europa.eu/commission/presscorner/home/en'
label: News
-
href: 'https://ec.europa.eu/info/events_en'
href: 'https://commission.europa.eu/events_en'
label: Events
-
href: 'https://ec.europa.eu/info/publications_en'
href: 'https://commission.europa.eu/publications_en'
label: Publications
service_navigation:
-
href: 'https://ec.europa.eu/info/about-european-commission/contact_en'
href: 'https://commission.europa.eu/about-european-commission/contact_en'
label: 'Contact the European Commission'
-
branding: core
Expand All @@ -67,18 +67,18 @@ service_navigation:
href: 'https://european-union.europa.eu/contact-eu/social-media-channels_en#/search?page=0&institutions=european_commission'
label: 'Follow the European Commission on social media'
-
href: 'https://ec.europa.eu/info/resources-partners_en'
href: 'https://commission.europa.eu/resources-partners_en'
label: 'Resources for partners'
legal_navigation:
-
href: 'https://ec.europa.eu/info/language-policy_en'
href: 'https://commission.europa.eu/language-policy_en'
label: 'Language policy'
-
href: 'https://ec.europa.eu/info/cookies_en'
href: 'https://commission.europa.eu/cookies_en'
label: Cookies
-
href: 'https://ec.europa.eu/info/privacy-policy_en'
href: 'https://commission.europa.eu/privacy-policy_en'
label: 'Privacy policy'
-
href: 'https://ec.europa.eu/info/legal-notice_en'
href: 'https://commission.europa.eu/legal-notice_en'
label: 'Legal notice'
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
langcode: en
corporate_site_link:
href: 'https://commission.europa.eu/index_en'
label: 'European Commission website'
class_navigation:
-
href: 'https://commission.europa.eu/strategy_en'
label: Strategy
-
href: 'https://commission.europa.eu/about-european-commission_en'
label: 'About the European Commission'
-
href: 'https://commission.europa.eu/business-economy-euro_en'
label: 'Business, Economy, Euro'
-
href: 'https://commission.europa.eu/live-work-travel-eu_en'
label: 'Live, work, travel in the EU'
-
href: 'https://commission.europa.eu/law_en'
label: Law
-
href: 'https://commission.europa.eu/funding-tenders_en'
label: 'Funding, Tenders'
-
href: 'https://commission.europa.eu/research-and-innovation_en'
label: 'Research and innovation'
-
href: 'https://commission.europa.eu/energy-climate-change-environment_en'
label: 'Energy, Climate change, Environment'
-
href: 'https://commission.europa.eu/education_en'
label: Education
-
href: 'https://commission.europa.eu/aid-development-cooperation-fundamental-rights_en'
label: 'Aid, Development cooperation, Fundamental rights'
-
href: 'https://commission.europa.eu/food-farming-fisheries_en'
label: 'Food, Farming, Fisheries'
-
href: 'https://commission.europa.eu/eu-regional-and-urban-development_en'
label: 'EU regional and urban development'
-
href: 'https://commission.europa.eu/jobs-european-commission_en'
label: 'Jobs at the European Commission'
-
href: 'https://commission.europa.eu/statistics_en'
label: Statistics
-
href: 'https://ec.europa.eu/commission/presscorner/home/en'
label: News
-
href: 'https://commission.europa.eu/events_en'
label: Events
-
href: 'https://commission.europa.eu/publications_en'
label: Publications
service_navigation:
-
href: 'https://commission.europa.eu/about-european-commission/contact_en'
label: 'Contact the European Commission'
-
branding: core
href: 'https://commission.europa.eu/accessibility-statement_en'
label: 'Accessibility'
-
external: true
href: 'https://european-union.europa.eu/contact-eu/social-media-channels_en#/search?page=0&institutions=european_commission'
label: 'Follow the European Commission on social media'
-
href: 'https://commission.europa.eu/resources-partners_en'
label: 'Resources for partners'
legal_navigation:
-
href: 'https://commission.europa.eu/language-policy_en'
label: 'Language policy'
-
href: 'https://commission.europa.eu/cookies_en'
label: Cookies
-
href: 'https://commission.europa.eu/privacy-policy_en'
label: 'Privacy policy'
-
href: 'https://commission.europa.eu/legal-notice_en'
label: 'Legal notice'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ status: true
dependencies: { }
id: contact
label: 'Custom Contact'
url: 'https://ec.europa.eu/info/contact_en'
url: 'https://commission.europa.eu/contact_en'
section: contact_us
weight: -10
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ status: true
dependencies: { }
id: legal_notice
label: 'Custom Legal notice'
url: 'https://ec.europa.eu/info/legal-notice_en'
url: 'https://commission.europa.eu/legal-notice_en'
section: about_us
weight: -10
8 changes: 8 additions & 0 deletions oe_corporate_blocks.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,11 @@ function oe_corporate_blocks_post_update_40004(&$sandbox): void {
$config_path = drupal_get_path('module', 'oe_corporate_blocks') . '/config/post_update/40004_update_footer_data';
_oe_corporate_blocks_import_corporate_links($config_path);
}

/**
* Change the core site url in footer data.
*/
function oe_corporate_blocks_post_update_40005(&$sandbox): void {
$config_path = \Drupal::service('extension.list.module')->getPath('oe_corporate_blocks') . '/config/post_update/40005_update_footer_data';
_oe_corporate_blocks_import_corporate_links($config_path);
}
Loading

0 comments on commit 32fafb7

Please sign in to comment.