Drupal 8  8.0.2
ViewFormBase Class Reference
Inheritance diagram for ViewFormBase:

Public Member Functions

 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)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 

Protected Member Functions

 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

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

Detailed Description

Base form for Views forms.

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state,
  $display_id = NULL 
)

{}

References FormStateInterface\get(), and FormStateInterface\has().

Here is the call graph for this function:

getDisplayLabel ( ViewUI  $view,
  $display_id,
  $check_changed = TRUE 
)

Placeholder function for overriding $display['display_title'].

Todo:
Remove this function once editing the display title is possible.

References ViewUI\get(), and t().

Referenced by ViewEditForm\getDisplayDetails(), and ViewFormBase\getDisplayTabs().

Here is the call graph for this function:

Here is the caller graph for this function:

getDisplayTabs ( ViewUI  $view)

Adds tabs for navigating across Displays when editing a View.

This function can be called from hook_menu_local_tasks_alter() to implement these tabs as secondary local tasks, or it can be called from elsewhere if having them as secondary local tasks isn't desired. The caller is responsible for setting the active tab's #active property to TRUE.

Parameters
$display_idThe display_id which is edited on the current request.

References ViewUI\get(), ViewFormBase\getDisplayLabel(), ViewUI\getExecutable(), ViewFormBase\isDefaultDisplayShown(), t(), and ViewUI\urlInfo().

Referenced by ViewFormBase\prepareEntity(), and ViewEditForm\renderDisplayTop().

Here is the call graph for this function:

Here is the caller graph for this function:

init ( FormStateInterface  $form_state)

{}

References FormStateInterface\loadInclude(), and FormStateInterface\set().

Here is the call graph for this function:

isDefaultDisplayShown ( ViewUI  $view)

Controls whether or not the default display should have its own tab on edit.

References Drupal\config(), and ViewUI\getExecutable().

Referenced by ViewFormBase\getDisplayTabs().

Here is the call graph for this function:

Here is the caller graph for this function:

prepareEntity ( )
protected

{}

References ViewFormBase\getDisplayTabs().

Here is the call graph for this function:


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