function FieldBlockTest::providerTestBlockAccessNotAllowed

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessNotAllowed()
  2. 8.9.x core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessNotAllowed()
  3. 11.x core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessNotAllowed()

Provides test data for ::testBlockAccessEntityNotAllowed().

File

core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php, line 80

Class

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

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public static function providerTestBlockAccessNotAllowed() {
    $data = [];
    $data['entity_forbidden'] = [
        FALSE,
        AccessResult::forbidden(),
    ];
    $data['entity_neutral'] = [
        FALSE,
        AccessResult::neutral(),
    ];
    return $data;
}

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