function MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess

Same name in other branches
  1. 10 core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess()
  2. 11.x core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess()

Data provider for ::testFieldWidgetEntityFieldAccess().

Return value

array[] Sets of arguments to pass to the test method.

File

core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php, line 265

Class

MediaLibraryAccessTest
Tests the media library access.

Namespace

Drupal\Tests\media_library\Kernel

Code

public function providerFieldWidgetEntityFieldAccess() : array {
    return [
        [
            'entity_reference',
        ],
        [
            'entity_reference_subclass',
        ],
    ];
}

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