'langcode' => \Drupal::
languageManager()->
getDefaultLanguage()->
getId(),
];
$view = View::
create($values);
// Build all display options for this view.
$display_options =
$this->
buildDisplayOptions($form,
$form_state);
// Allow the fully built options to be altered. This happens before adding
// the options to the view, so that once they are eventually added we will
// be able to get all the overrides correct.
$this->
alterDisplayOptions($display_options,
$form,
$form_state);
$this->
addDisplays($view,
$display_options,
$form,
$form_state);
return new ViewUI($view);
} /**
* Builds an array of display options for the view.
*
* @return array
* An array whose keys are the names of each display and whose values are
* arrays of options for that display.
*/