function MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess

Same name in other branches
  1. 9 core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess()
  2. 10 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 249

Class

MediaLibraryAccessTest
Tests the media library access.

Namespace

Drupal\Tests\media_library\Kernel

Code

public static 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.