class ViewsUiTestFieldHooks

Hook implementations for views_ui_test_field.

Hierarchy

Expanded class hierarchy of ViewsUiTestFieldHooks

File

core/modules/views_ui/tests/modules/views_ui_test_field/src/Hook/ViewsUiTestFieldHooks.php, line 13

Namespace

Drupal\views_ui_test_field\Hook
View source
class ViewsUiTestFieldHooks {
    
    /**
     * 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.
     */
    public function formViewsUiAddHandlerFormAlter(&$form, FormStateInterface $form_state) : void {
        $form['options']['name']['#options']['views.views_test_field_1']['title']['data']['#title'] .= ' FIELD_1_LABEL';
    }

}

Members

Title Sort descending Modifiers Object type Summary
ViewsUiTestFieldHooks::formViewsUiAddHandlerFormAlter public function 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.