public functioncreateView(array $form, FormStateInterface $form_state) {
$view = $this->retrieveValidatedView($form, $form_state);
if (empty($view)) {
thrownewWizardException('Attempted to create a view with values that have not been validated.');
}
return$view;
}