public ViewFormBase::getDisplayLabel(ViewUI $view, $display_id, $check_changed = TRUE)
Placeholder function for overriding $display['display_title'].
@todo Remove this function once editing the display title is possible.
File
- core/modules/views_ui/src/ViewFormBase.php, line 157
Class
- ViewFormBase
- Base form for Views forms.
Namespace
Drupal\views_ui
Code
1 2 3 4 5 6 7 8 9 10 11 12 | public function getDisplayLabel(ViewUI $view , $display_id , $check_changed = TRUE) { $display = $view ->get( 'display' ); $title = $display_id == 'default' ? $this ->t( 'Master' ) : $display [ $display_id ][ 'display_title' ]; $title = views_ui_truncate( $title , 25); if ( $check_changed && ! empty ( $view ->changed_display[ $display_id ])) { $changed = '*' ; $title = $title . $changed ; } return $title ; } |
Please login to continue.