Skip to content

Commit

Permalink
Release 11.4.3: Changed label on news subnav
Browse files Browse the repository at this point in the history
  • Loading branch information
imonroe committed Sep 26, 2024
1 parent 9a44334 commit 66660f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,3 @@ function engineering_profile_helper_update_9001() {
}

}

/**
* Update hook to set nodes to automatically generate URL aliases.

function engineering_profile_helper_update_9002() {

$entity_type = 'node';
$entity_storage = \Drupal::entityTypeManager()->getStorage($entity_type);
$nodes = $entity_storage->loadMultiple();
foreach($nodes as $node) {
$bundles = ['stanford_page', 'stanford_news', 'spotlight'];
if (in_array($node->bundle(), $bundles) && !$node->path->pathauto) {
$node->path->pathauto = PathautoState::CREATE;
$node->save();
}
}

$entity_type = 'taxonomy_term';
$entity_storage = \Drupal::entityTypeManager()->getStorage($entity_type);
$terms = $entity_storage->loadMultiple();
foreach($terms as $term) {
if (!$term->path->pathauto) {
$term->path->pathauto = PathautoState::CREATE;
$term->save();
}
}

\Drupal::logger('mymodule')->info('Updated URL alias settings for stanford_page, spotlight, and stanford_news nodes that were not set to generate automatically.');
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Profile magazine_navigation_block
<button aria-label="Open the Topics menu" id="magazine-landing-nav__topics-toggle" aria-expanded="false"></button>
</div>

<div class="news-navigation-nav__item foe_item"><a href="/news/collection/future-everything-podcast" aria-label="Future of Everything podcast">Future of Everything</a></div>
<div class="news-navigation-nav__item foe_item"><a href="/news/collection/future-everything-podcast" aria-label="The Future of Everything podcast">The Future of Everything</a></div>

<div class="news-navigation-nav__item spotlight_item"><a href="/spotlight" aria-label="Spotlights">Spotlights</a></div>

Expand Down

0 comments on commit 66660f0

Please sign in to comment.