views_ui_test_theme.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_ui_test_theme/ views_ui_test_theme.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_ui_test_theme_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_ui_test_theme_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_ui_test_theme_views_ui_display_tab_alter | Implements hook_views_ui_display_tab_alter(). | |
views_ui_test_theme_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.