ContextAwarePluginBase::$contexts

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 = [];

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