Commit 068f1468 authored by tim.plunkett's avatar tim.plunkett
Browse files

Issue #1758788 by tim.plunkett, dawehner: ViewsWizardException was moved to PSR-0.

parent e77c8f48
......@@ -10,6 +10,7 @@
use Drupal\views\View;
use Drupal\views\Analyzer;
use Drupal\views\Plugin\Type\ViewsPluginManager;
use Drupal\views\Plugin\views\wizard\WizardException;
/**
* Create an array of Views admin CSS for adding or attaching.
......@@ -672,7 +673,7 @@ function views_ui_add_form_save_submit($form, &$form_state) {
try {
$view = $form_state['wizard_instance']->create_view($form, $form_state);
}
catch (ViewsWizardException $e) {
catch (WizardException $e) {
drupal_set_message($e->getMessage(), 'error');
$form_state['redirect'] = 'admin/structure/views';
}
......@@ -699,7 +700,7 @@ function views_ui_add_form_store_edit_submit($form, &$form_state) {
try {
$view = $form_state['wizard_instance']->create_view($form, $form_state);
}
catch (ViewsWizardException $e) {
catch (WizardException $e) {
drupal_set_message($e->getMessage(), 'error');
$form_state['redirect'] = 'admin/structure/views';
}
......
......@@ -1065,7 +1065,7 @@ function validate($form, &$form_state) {
* @return
* The created view object.
*
* @throws ViewsWizardException
* @throws Drupal\views\Plugin\views\wizard\WizardException
*/
function create_view($form, &$form_state) {
$view = $this->retrieve_validated_view($form, $form_state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment