Skip to content
Snippets Groups Projects
Commit b6e07b67 authored by Ravi Kumar Singh's avatar Ravi Kumar Singh
Browse files

Issue #3362219 by ru.bsv, rksyravi: ClearCacheService::createUrl(): Argument...

Issue #3362219 by ru.bsv, rksyravi: ClearCacheService::createUrl(): Argument #2 ($id) must be of type string
parent 19b96a59
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ function ccos_menu_local_tasks_alter(&$data, $route_name, RefinableCacheableDepe
if (!empty($params)) {
$find = array_keys($params)[0];
$lists = $ccos->getEntityTypeLists();
if (array_key_exists($find, $lists)) {
if (array_key_exists($find, $lists) && !empty($params[$find])) {
// Add a tab linking to clear cache to all pages.
$data['tabs'][0]['ccos.single'] = [
'#theme' => 'menu_local_task',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment