function ContextTest::providerGetContextValue
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php \Drupal\Tests\Component\Plugin\Context\ContextTest::providerGetContextValue()
- 10 core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php \Drupal\Tests\Component\Plugin\Context\ContextTest::providerGetContextValue()
- 11.x core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php \Drupal\Tests\Component\Plugin\Context\ContextTest::providerGetContextValue()
Data provider for testGetContextValue.
File
-
core/
tests/ Drupal/ Tests/ Component/ Plugin/ Context/ ContextTest.php, line 17
Class
- ContextTest
- @coversDefaultClass \Drupal\Component\Plugin\Context\Context @group Plugin
Namespace
Drupal\Tests\Component\Plugin\ContextCode
public function providerGetContextValue() {
return [
[
'context_value',
'context_value',
FALSE,
'data_type',
],
[
NULL,
NULL,
FALSE,
'data_type',
],
[
'will throw exception',
NULL,
TRUE,
'data_type',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.