Drupal 8  8.0.2
ViewAddForm Class Reference
Inheritance diagram for ViewAddForm:

Public Member Functions

 __construct (ViewsPluginManager $wizard_manager)
 
 form (array $form, FormStateInterface $form_state)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 cancel (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from ViewFormBase
 init (FormStateInterface $form_state)
 
 buildForm (array $form, FormStateInterface $form_state, $display_id=NULL)
 
 getDisplayTabs (ViewUI $view)
 
 isDefaultDisplayShown (ViewUI $view)
 
 getDisplayLabel (ViewUI $view, $display_id, $check_changed=TRUE)
 
- Public Member Functions inherited from EntityForm
 setOperation ($operation)
 
 getBaseFormId ()
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 form (array $form, FormStateInterface $form_state)
 
 processForm ($element, FormStateInterface $form_state, $form)
 
 afterBuild (array $element, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 buildEntity (array $form, FormStateInterface $form_state)
 
 getEntity ()
 
 setEntity (EntityInterface $entity)
 
 getEntityFromRouteMatch (RouteMatchInterface $route_match, $entity_type_id)
 
 getOperation ()
 
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
 setEntityManager (EntityManagerInterface $entity_manager)
 
 setEntityTypeManager (EntityTypeManagerInterface $entity_type_manager)
 
- Public Member Functions inherited from EntityFormInterface
 setStringTranslation (TranslationInterface $string_translation)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 prepareEntity ()
 
 actions (array $form, FormStateInterface $form_state)
 
- Protected Member Functions inherited from ViewFormBase
 prepareEntity ()
 
- Protected Member Functions inherited from EntityForm
 init (FormStateInterface $form_state)
 
 actionsElement (array $form, FormStateInterface $form_state)
 
 actions (array $form, FormStateInterface $form_state)
 
 copyFormValuesToEntity (EntityInterface $entity, array $form, FormStateInterface $form_state)
 
 prepareEntity ()
 
 prepareInvokeAll ($hook, FormStateInterface $form_state)
 

Protected Attributes

 $wizardManager
 
- Protected Attributes inherited from ViewFormBase
 $displayID
 
- Protected Attributes inherited from EntityForm
 $operation
 
 $moduleHandler
 
 $entityManager
 
 $entityTypeManager
 
 $entity
 

Detailed Description

Form controller for the Views edit form.

Constructor & Destructor Documentation

__construct ( ViewsPluginManager  $wizard_manager)

Constructs a new ViewEditForm object.

Parameters
\Drupal\views\Plugin\ViewsPluginManager$wizard_managerThe wizard plugin manager.

Member Function Documentation

actions ( array  $form,
FormStateInterface  $form_state 
)
protected

{}

References t().

Here is the call graph for this function:

cancel ( array  $form,
FormStateInterface  $form_state 
)

Form submission handler for the 'cancel' action.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.

References FormStateInterface\setRedirect().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

form ( array  $form,
FormStateInterface  $form_state 
)

{}

References WizardPluginBase\getSelected(), Drupal\moduleHandler(), and t().

Here is the call graph for this function:

prepareEntity ( )
protected

{}

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{Form validation handler.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
}

Implements FormInterface.

References FormStateInterface\getValue(), FormStateInterface\set(), and FormStateInterface\setErrorByName().

Here is the call graph for this function:


The documentation for this class was generated from the following file: