Commit c7a563c6 authored by catch's avatar catch
Browse files

Issue #3144046 by Matroskeen: Incorrect example of adding Cache metadata in...

Issue #3144046 by Matroskeen: Incorrect example of adding Cache metadata in hook_menu_local_tasks_alter()

(cherry picked from commit 78cc0f28)
parent 200cef5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ function hook_menu_local_tasks_alter(&$data, $route_name, \Drupal\Core\Cache\Ref
      ],
  ];
  // The tab we're adding is dependent on a user's access to add content.
  $cacheability->addCacheTags(['user.permissions']);
  $cacheability->addCacheContexts(['user.permissions']);
}

/**