views_ui_test_field.views.inc

Same filename in other branches
  1. 9 core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.views.inc
  2. 8.9.x core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.views.inc
  3. 11.x core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.views.inc

Provide views data for testing purposes.

File

core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.views.inc

View source
<?php


/**
 * @file
 * Provide views data for testing purposes.
 */

/**
 * Implements hook_views_data().
 */
function views_ui_test_field_views_data() {
    $data['views']['views_test_field_1'] = [
        'title' => t('Views test field 1 - FIELD_1_TITLE'),
        'help' => t('Field 1 for testing purposes - FIELD_1_DESCRIPTION'),
        'field' => [
            'id' => 'views_test_field_1',
        ],
    ];
    $data['views']['views_test_field_2'] = [
        'title' => t('Views test field 2 - FIELD_2_TITLE'),
        'help' => t('Field 2 for testing purposes - FIELD_2_DESCRIPTION'),
        'field' => [
            'id' => 'views_test_field_2',
        ],
    ];
    return $data;
}

Functions

Title Deprecated Summary
views_ui_test_field_views_data Implements hook_views_data().

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