function ViewExecutableTest::addHandlerProvider

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::addHandlerProvider()
  2. 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::addHandlerProvider()
  3. 10 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::addHandlerProvider()

Data provider for testAddHandlerWithEntityField and testAddHandler.

Return value

array[] Test data set.

File

core/modules/views/tests/src/Unit/ViewExecutableTest.php, line 457

Class

ViewExecutableTest
@coversDefaultClass \Drupal\views\ViewExecutable @group views

Namespace

Drupal\Tests\views\Unit

Code

public static function addHandlerProvider() {
    return [
        'field' => [
            'fields',
            'field',
        ],
        'filter' => [
            'filters',
            'filter',
        ],
        'argument' => [
            'arguments',
            'argument',
        ],
        'sort' => [
            'sorts',
            'sort',
        ],
    ];
}

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