function EntityAccessControlHandlerTest::providerTestFieldAccess
Provides entity data for testing access.
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAccessControlHandlerTest.php, line 352  
Class
- EntityAccessControlHandlerTest
 - Tests the entity access control handler.
 
Namespace
Drupal\KernelTests\Core\EntityCode
public static function providerTestFieldAccess() {
  return [
    'serial ID entity' => [
      EntityTest::class,
      [
        'name' => 'A test entity',
        'uuid' => '60e3a179-79ed-4653-ad52-5e614c8e8fbe',
      ],
      FALSE,
    ],
    'string ID entity' => [
      EntityTestStringId::class,
      [
        'id' => 'a_test_entity',
        'name' => 'A test entity',
        'uuid' => '60e3a179-79ed-4653-ad52-5e614c8e8fbe',
      ],
      TRUE,
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.