generate:cache:context

Generate a cache context

Usage:

drupal generate:cache:context  [options]
gcc

Available options

OptionDetails

--module

Nom del mòdul.

--cache-context

The cache context name

--class

Cache context class name

--services

Carregar serveis des del contenidor.

Examples

Generate cache for a context specifying the module, the context name and its class

drupal generate:cache:context  \
  --module="modulename"  \
  --cache-context="ContextName"  \
  --class="DefaultCacheContext"