function DisplayVariantTest::providerTestGetConfiguration

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::providerTestGetConfiguration()
  2. 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::providerTestGetConfiguration()
  3. 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::providerTestGetConfiguration()

Provides test data for testGetConfiguration().

File

core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php, line 90

Class

DisplayVariantTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Display%21VariantBase.php/class/VariantBase/11.x" title="Provides a base class for DisplayVariant plugins." class="local">\Drupal\Core\Display\VariantBase</a> @group Display

Namespace

Drupal\Tests\Core\Display

Code

public static function providerTestGetConfiguration() {
    $data = [];
    $data[] = [
        [],
        [
            'id' => 'test',
            'label' => '',
            'uuid' => '',
            'weight' => 0,
        ],
    ];
    $data[] = [
        [
            'label' => 'Test',
        ],
        [
            'id' => 'test',
            'label' => 'Test',
            'uuid' => '',
            'weight' => 0,
        ],
    ];
    $data[] = [
        [
            'id' => 'foo',
        ],
        [
            'id' => 'test',
            'label' => '',
            'uuid' => '',
            'weight' => 0,
        ],
    ];
    return $data;
}

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