LazyContextRepository::$contexts

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::contexts
  2. 10 core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::contexts
  3. 11.x core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::contexts

The statically cached contexts.

Type: \Drupal\Core\Plugin\Context\ContextInterface[]

File

core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php, line 32

Class

LazyContextRepository
Provides a context repository which uses context provider services.

Namespace

Drupal\Core\Plugin\Context

Code

protected $contexts = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.