views_test_classy_subtheme.theme
Same filename in other branches
Implements Views UI alter hooks in a theme to provide test coverage.
File
-
core/
modules/ views_ui/ tests/ themes/ views_test_classy_subtheme/ views_test_classy_subtheme.theme
View source
<?php
/**
* @file
* Implements Views UI alter hooks in a theme to provide test coverage.
*/
use Drupal\views_ui\ViewUI;
/**
* Implements hook_views_ui_display_tab_alter().
*/
function views_test_classy_subtheme_views_ui_display_tab_alter(&$build, ViewUI $view, $display_id) {
$build['details']['top']['display_title']['#description'] = 'This is text added to the display edit form';
}
/**
* Implements hook_views_ui_display_top_alter().
*/
function views_test_classy_subtheme_views_ui_display_top_alter(&$build, ViewUI $view, $display_id) {
$build['tabs']['#suffix'] .= 'This is text added to the display tabs at the top';
}
Functions
Title | Deprecated | Summary |
---|---|---|
views_test_classy_subtheme_views_ui_display_tab_alter | Implements hook_views_ui_display_tab_alter(). | |
views_test_classy_subtheme_views_ui_display_top_alter | Implements hook_views_ui_display_top_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.