/**
* Basic submit handler applicable to all 'standard' forms.
*
* This submit handler determines whether the user wants the submitted changes
* to apply to the default display or to the current display, and dispatches
* control appropriately.
*/
public function standardSubmit($form, FormStateInterface
$form_state) { // Determine whether the values the user entered are intended to apply to
// the current display or the default display.
[$was_defaulted,
$is_defaulted,
$revert] =
$this->
getOverrideValues($form,
$form_state);
// Based on the user's choice in the display dropdown, determine which display
// these changes apply to.
$display_id =
$form_state->
get('display_id'
);
if ($revert) { // If it's revert just change the override and return.
$display = &
$this->
getExecutable()->displayHandlers->
get($display_id);
$display->
optionsOverride($form,
$form_state);
// Don't execute the normal submit handling but still store the changed view into cache.
$this->
cacheSet();