$cache_contexts_manager->
reveal();
$c->
set('cache_contexts_manager',
$cache_contexts_manager);
\Drupal::
setContainer($c);
return [ 'permissionless + unlocked' =>
[ 'permissionless',
'unlocked',
AccessResult::
allowed(),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
)->
addCacheTags(['config:system.menu.llama'
]),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
],
'permissionless + locked' =>
[ 'permissionless',
'locked',
AccessResult::
allowed(),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
AccessResult::
forbidden()->
addCacheTags(['config:system.menu.llama'
])->
setReason("The Menu config entity is locked."
),
AccessResult::
neutral()->
addCacheContexts(['user.permissions'
])->
setReason("The 'administer menu' permission is required."
),
],