Block::$context
An array of context definitions describing the context used by the plugin.
The array is keyed by context names.
Type: \Drupal\Core\Annotation\ContextDefinition[]
Deprecated
Providing context definitions via the "context" key is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the "context_definitions" key instead.
File
-
core/
lib/ Drupal/ Core/ Block/ Annotation/ Block.php, line 52
Class
- Block
- Defines a Block annotation object.
Namespace
Drupal\Core\Block\AnnotationCode
public $context = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.