];
// Add a text that the display is disabled.
if ($view->
getExecutable()->displayHandlers->
has($display_id)) { if (!
$view->
getExecutable()->displayHandlers->
get($display_id)->
isEnabled()) { $form['displays'
]['settings'
]['disabled'
]['#markup'
] =
$this->
t('This display is disabled.'
);
} } // Add the edit display content
$tab_content =
$this->
getDisplayTab($view);
$tab_content['#theme_wrappers'
] =
['container'
];
$tab_content['#attributes'
] =
['class' =>
['views-display-tab'
]];
$tab_content['#id'
] = 'views-tab-' .
$display_id;
// Mark deleted displays as such.
$display =
$view->
get('display'
);
if (!
empty($display[$display_id]['deleted'
])) { $tab_content['#attributes'
]['class'
][] = 'views-display-deleted';
} // Mark disabled displays as such.
if ($view->
getExecutable()->displayHandlers->
has($display_id) && !
$view->
getExecutable()->displayHandlers->
get($display_id)->
isEnabled()) {