function FieldBlockTest::providerTestBlockAccessEntityAllowedFieldHasValue
Same name in other branches
- 9 core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessEntityAllowedFieldHasValue()
- 8.9.x core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessEntityAllowedFieldHasValue()
- 10 core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessEntityAllowedFieldHasValue()
Provides test data for ::testBlockAccessEntityAllowedFieldHasValue().
File
-
core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php, line 181
Class
- FieldBlockTest
- @coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock @group Field
Namespace
Drupal\Tests\layout_builder\KernelCode
public static function providerTestBlockAccessEntityAllowedFieldHasValue() {
$data = [];
$data['empty'] = [
FALSE,
TRUE,
FALSE,
];
$data['populated'] = [
TRUE,
FALSE,
FALSE,
];
$data['empty, with default'] = [
TRUE,
TRUE,
TRUE,
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.