interface WizardInterface in Views (for Drupal 7) 8.3
Defines a common interface for Views Wizard plugins.
Hierarchy
- interface \Drupal\views\Plugin\views\wizard\WizardInterface
Expanded class hierarchy of WizardInterface
All classes that implement WizardInterface
3 files declare their use of WizardInterface
- StylePluginBase.php in lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Definition of Drupal\views\Plugin\views\style\StylePluginBase.
- Table.php in lib/
Drupal/ views/ Plugin/ views/ style/ Table.php - Definition of Drupal\views\Plugin\views\style\Table.
- WizardPluginBase.php in lib/
Drupal/ views/ Plugin/ views/ wizard/ WizardPluginBase.php - Definition of Drupal\views\Plugin\views\wizard\WizardPluginBase.
File
- lib/
Drupal/ views/ Plugin/ views/ wizard/ WizardInterface.php, line 13 - Definition of Drupal\views\Plugin\views\wizard\WizardInterface.
Namespace
Drupal\views\Plugin\views\wizardView source
interface WizardInterface {
/**
* Form callback to build other elements in the "show" form.
*
* This method builds all form elements beside of the selection of the
* base table.
*
* @param array $form
* The full wizard form array.
* @param array $form_state
* The current state of the wizard form.
*
* @return array
* Returns the changed wizard form.
*/
function build_form(array $form, array &$form_state);
/**
* Validate form and values.
*
* @param array $form
* The full wizard form array.
* @param array $form_state
* The current state of the wizard form.
*
* @return array
* An empty array if the view is valid; an array of error strings if it is
* not.
*/
public function validateView(array $form, array &$form_state);
/**
* Creates a view from values that have already been validated.
*
* @param array $form
* The full wizard form array.
* @param array $form_state
* The current state of the wizard form.
*
* @return Drupal\views\ViewExecutable
* The created view object.
*
* @throws Drupal\views\Plugin\views\wizard\WizardException
*/
function create_view(array $form, array &$form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WizardInterface:: |
function | Form callback to build other elements in the "show" form. | 1 | |
WizardInterface:: |
function | Creates a view from values that have already been validated. | 1 | |
WizardInterface:: |
public | function | Validate form and values. | 1 |