views_ui_test_field.module

Same filename in other branches
  1. 8.9.x core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.module
  2. 10 core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.module
  3. 11.x core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.module

ViewsUI Test field module.

File

core/modules/views_ui/tests/modules/views_ui_test_field/views_ui_test_field.module

View source
<?php


/**
 * @file
 * ViewsUI Test field module.
 */
use Drupal\Core\Form\FormStateInterface;

/**
 * Implements hook_form_FORM_ID_alter() for views_ui_add_handler_form.
 *
 * Changes the label for one of the tests fields to validate this label is not
 * searched on.
 */
function views_ui_test_field_form_views_ui_add_handler_form_alter(&$form, FormStateInterface $form_state) {
    $form['options']['name']['#options']['views.views_test_field_1']['title']['data']['#title'] .= ' FIELD_1_LABEL';
}

Functions

Title Deprecated Summary
views_ui_test_field_form_views_ui_add_handler_form_alter Implements hook_form_FORM_ID_alter() for views_ui_add_handler_form.

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