interface WizardInterface (View source)

Defines a common interface for Views Wizard plugins.

Methods

array
buildForm(array $form, FormStateInterface $form_state)

Form callback to build other elements in the "show" form.

array
validateView(array $form, FormStateInterface $form_state)

Validate form and values.

createView(array $form, FormStateInterface $form_state)

Creates a view from values that have already been validated.

Details

array buildForm(array $form, FormStateInterface $form_state)

Form callback to build other elements in the "show" form.

This method builds all form elements beside of the selection of the base table.

Parameters

array $form

The full wizard form array.

FormStateInterface $form_state

The current state of the wizard form.

Return Value

array

Returns the changed wizard form.

array validateView(array $form, FormStateInterface $form_state)

Validate form and values.

Parameters

array $form

The full wizard form array.

FormStateInterface $form_state

The current state of the wizard form.

Return Value

array

An empty array if the view is valid; an array of error strings if it is not.

ViewEntityInterface createView(array $form, FormStateInterface $form_state)

Creates a view from values that have already been validated.

Parameters

array $form

The full wizard form array.

FormStateInterface $form_state

The current state of the wizard form.

Return Value

ViewEntityInterface

The created view object.

Exceptions

WizardException