You are here

public function ViewUI::getDisplayLabel in Views (for Drupal 7) 8.3

Placeholder function for overriding $display['display_title'].

@todo Remove this function once editing the display title is possible.

3 calls to ViewUI::getDisplayLabel()
ViewUI::buildEditForm in views_ui/lib/Drupal/views_ui/ViewUI.php
Form builder callback for editing a View.
ViewUI::getDisplayDetails in views_ui/lib/Drupal/views_ui/ViewUI.php
Helper function to get the display details section of the edit UI.
ViewUI::getDisplayTabs in views_ui/lib/Drupal/views_ui/ViewUI.php
Adds tabs for navigating across Displays when editing a View.

File

views_ui/lib/Drupal/views_ui/ViewUI.php, line 107
Definition of Drupal\views_ui\ViewUI.

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function getDisplayLabel($display_id, $check_changed = TRUE) {
  $title = $display_id == 'default' ? t('Master') : $this->storage->display[$display_id]['display_title'];
  $title = views_ui_truncate($title, 25);
  if ($check_changed && !empty($this->changed_display[$display_id])) {
    $changed = '*';
    $title = $title . $changed;
  }
  return $title;
}