function FieldTest::providerSortOrders

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldTest::providerSortOrders()
  2. 10 core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldTest::providerSortOrders()
  3. 11.x core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldTest::providerSortOrders()

Provides sort orders for clickSort() test methods.

Return value

array

File

core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php, line 698

Class

FieldTest
@coversDefaultClass \Drupal\views\Plugin\views\field\EntityField @group views

Namespace

Drupal\Tests\views\Unit\Plugin\field

Code

public function providerSortOrders() {
    return [
        [
            'asc',
        ],
        [
            'desc',
        ],
        [
            'ASC',
        ],
        [
            'DESC',
        ],
    ];
}

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