function FieldUrlTest::viewsData

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php \Drupal\Tests\views\Kernel\Handler\FieldUrlTest::viewsData()
  2. 10 core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php \Drupal\Tests\views\Kernel\Handler\FieldUrlTest::viewsData()
  3. 11.x core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php \Drupal\Tests\views\Kernel\Handler\FieldUrlTest::viewsData()

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php, line 26

Class

FieldUrlTest
Tests the core <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21field%21Url.php/class/Url/8.9.x" title="Field handler to provide simple renderer that turns a URL into a clickable link." class="local">Drupal\views\Plugin\views\field\Url</a> handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['name']['field']['id'] = 'url';
    return $data;
}

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