You are here

private property ContextAwarePluginBase::$contexts in Drupal 8

Data objects representing the contexts passed in the plugin configuration.

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

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Plugin\ContextAwarePluginInterface instead.

See also

https://www.drupal.org/project/drupal/issues/3080631

File

core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php, line 34

Class

ContextAwarePluginBase
Base class for plugins that are context aware.

Namespace

Drupal\Component\Plugin

Code

private $contexts = [];