Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
10
vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.services.twig
vendored
Normal file
10
vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.services.twig
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
services:
|
||||
cache_context.{{ context_id }}:
|
||||
class: Drupal\{{ machine_name }}\Cache\Context\{{ class }}
|
||||
{% if base_class == 'RequestStackCacheContextBase' %}
|
||||
arguments: ['@request_stack']
|
||||
{% elseif base_class == 'UserCacheContextBase' %}
|
||||
arguments: ['@current_user']
|
||||
{% endif %}
|
||||
tags:
|
||||
- { name: cache.context}
|
||||
Reference in a new issue