You are here

function EntityFieldQueryViewsNodeLinkTest::view in EntityFieldQuery Views Backend 8

Overrides EntityFieldQueryViewsTestBase::view

File

src/Tests/EntityFieldQueryViewsNodeLinkTest.php, line 24
Tests for EntityFieldQuery Views query features.

Class

EntityFieldQueryViewsNodeLinkTest
Class EntityFieldQueryViewsNodeLinkTest

Namespace

Drupal\efq_views\Tests

Code

function view() {
  $view = new view();
  $view->base_table = 'efq_node';

  /* Display: Master */
  $handler = $view
    ->new_display('default');

  /* Field: Node: Edit link */
  $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  return $view;
}