generate:cache:context

Generate a cache context

Utilisation:

drupal generate:cache:context [options]
  gcc

Options disponibles

Option Détails
--module Le nom du module.
--cache-context The cache context name
--class Cache context class name
--services Charger des services depuis le conteneur.

Exemples

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"