You are here

public function FieldBlockTest::providerTestBlockAccessEntityAllowedFieldHasValue in Drupal 8

Same name and namespace in other branches
  1. 9 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 175

Class

FieldBlockTest
@coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock @group Field

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function providerTestBlockAccessEntityAllowedFieldHasValue() {
  $data = [];
  $data['empty'] = [
    FALSE,
    TRUE,
  ];
  $data['populated'] = [
    TRUE,
    FALSE,
  ];
  return $data;
}