diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index 3fdd843b20..529f2b48e3 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -326,9 +326,9 @@ function shortcut_preprocess_page_title(&$variables) { $shortcut_set = shortcut_current_displayed_set(); // Add a list cache tag for shortcuts. - $cacheablity_metadata = CacheableMetadata::createFromRenderArray($variables); - $cacheablity_metadata->addCacheTags(\Drupal::entityTypeManager()->getDefinition('shortcut')->getListCacheTags()); - $cacheablity_metadata->applyTo($variables); + $cacheability_metadata = CacheableMetadata::createFromRenderArray($variables); + $cacheability_metadata->addCacheTags(\Drupal::entityTypeManager()->getDefinition('shortcut')->getListCacheTags()); + $cacheability_metadata->applyTo($variables); // Check if $link is already a shortcut and set $link_mode accordingly. $shortcuts = \Drupal::entityTypeManager()->getStorage('shortcut')->loadByProperties(['shortcut_set' => $shortcut_set->id()]);