Commit 35d3a84a authored by catch's avatar catch

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 e0abc7a5
......@@ -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']);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment