TestDisplayVariant::$contexts
Same name in other branches
- 8.9.x core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php \Drupal\display_variant_test\Plugin\DisplayVariant\TestDisplayVariant::contexts
- 10 core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php \Drupal\display_variant_test\Plugin\DisplayVariant\TestDisplayVariant::contexts
- 11.x core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php \Drupal\display_variant_test\Plugin\DisplayVariant\TestDisplayVariant::contexts
An array of collected contexts.
This is only used on runtime, and is not stored.
Type: \Drupal\Component\Plugin\Context\ContextInterface[]
File
-
core/
modules/ system/ tests/ modules/ display_variant_test/ src/ Plugin/ DisplayVariant/ TestDisplayVariant.php, line 41
Class
- TestDisplayVariant
- Provides a display variant that requires configuration.
Namespace
Drupal\display_variant_test\Plugin\DisplayVariantCode
protected $contexts = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.