function ContextConfigure::addContext
Same name in other branches
- 8.x-3.x src/Form/ContextConfigure.php \Drupal\ctools\Form\ContextConfigure::addContext()
Custom logic for adding a context to the cached_values contexts array.
Parameters
array $cached_values: The cached_values currently in use.
string $context_id: The context identifier.
\Drupal\Core\Plugin\Context\ContextInterface $context: The context to add or update within the cached values.
Return value
mixed Return the $cached_values
1 call to ContextConfigure::addContext()
- ContextConfigure::submitForm in src/
Form/ ContextConfigure.php - Form submission handler.
File
-
src/
Form/ ContextConfigure.php, line 276
Class
- ContextConfigure
- Configure Context Form.
Namespace
Drupal\ctools\FormCode
protected abstract function addContext($cached_values, $context_id, ContextInterface $context);