function MediaThumbnailFormatterTest::providerTestSettingsSummary

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

Data provider for testSettingsSummary().

Return value

array[]

File

core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php, line 94

Class

MediaThumbnailFormatterTest
@coversDefaultClass \Drupal\media\Plugin\Field\FieldFormatter\MediaThumbnailFormatter @group media

Namespace

Drupal\Tests\media\Kernel

Code

public function providerTestSettingsSummary() : array {
    return [
        'link to content' => [
            [
                'image_link' => 'content',
            ],
            [
                'Original image',
                'Linked to content',
                'Image loading: lazy',
            ],
        ],
        'link to media' => [
            [
                'image_link' => 'media',
            ],
            [
                'Original image',
                'Image loading: lazy',
                'Linked to media item',
            ],
        ],
        'link to nothing' => [
            [
                'image_link' => '',
            ],
            [
                'Original image',
                'Image loading: lazy',
            ],
        ],
    ];
}

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