Submit handler to disable display.
public function submitDisplayDisable($form, &$form_state) {
$view = $this
->getEntity($form_state);
$id = $form_state['display_id'];
$view
->get('executable')->displayHandlers[$id]
->setOption('enabled', FALSE);
// Store in cache
views_ui_cache_set($view);
// Redirect to the top-level edit page.
$form_state['redirect'] = 'admin/structure/views/view/' . $view
->get('name') . '/edit/' . $id;
}