/**
* Sets the context value.
*
* @param mixed $value
* The value of this context, matching the context definition.
*/ protectedfunctionsetContextValue($value){ // Add the value as a cacheable dependency only if implements the interface
// to prevent it from disabling caching with a max-age 0.
// Get the value for this context, either directly if possible or by
// introspecting the definition.
if($context->hasContextValue()){ $values = [$context->getContextData()]; } elseif($definition instanceof self){ $values = $definition->getSampleValues(); } else{ $values = []; }