class ViewsTestDataAlterHooks

Hierarchy

Expanded class hierarchy of ViewsTestDataAlterHooks

File

core/modules/views/tests/modules/views_test_data_alter/src/Hook/ViewsTestDataAlterHooks.php, line 9

Namespace

Drupal\views_test_data_alter\Hook
View source
class ViewsTestDataAlterHooks {
    
    /**
     * Implements hook_views_data_alter().
     */
    public function viewsDataAlter(array &$data) : void {
        // Modify a filter to use a different filter handler plugin
        // by default so that we can test that the handler used
        // respects the handler plugin ID specified in the
        // configuration.
        $data['node_field_data']['status']['filter']['id'] = 'numeric';
    }

}

Members

Title Sort descending Modifiers Object type Summary
ViewsTestDataAlterHooks::viewsDataAlter public function Implements hook_views_data_alter().

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