function MediaLibraryAccessTest::editorOpenerAccessProvider

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

Data provider for ::testEditorOpenerAccess.

File

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

Class

MediaLibraryAccessTest
Tests the media library access.

Namespace

Drupal\Tests\media_library\Kernel

Code

public static function editorOpenerAccessProvider() {
    return [
        'media_embed filter enabled' => [
            TRUE,
            TRUE,
        ],
        'media_embed filter disabled' => [
            FALSE,
            TRUE,
        ],
        'media_embed filter enabled, user not allowed to use text format' => [
            TRUE,
            FALSE,
        ],
    ];
}

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