Drupal 8  8.0.2
ExposedFormCache Class Reference

Public Member Functions

 setForm ($view_id, $display_id, array $form_output)
 
 getForm ($view_id, $display_id)
 
 reset ()
 

Protected Attributes

 $cache = array()
 

Detailed Description

Caches exposed forms, as they are heavy to generate.

See Also

Member Function Documentation

getForm (   $view_id,
  $display_id 
)

Retrieves the views exposed form from cache.

Parameters
string$view_idThe views ID.
string$display_idThe current view display name.
Returns
array|bool The form structure, if any, otherwise FALSE.

References Drupal\cache().

Here is the call graph for this function:

reset ( )

Rests the form cache.

References Drupal\cache().

Here is the call graph for this function:

setForm (   $view_id,
  $display_id,
array  $form_output 
)

Save the Views exposed form for later use.

Parameters
string$view_idThe views ID.
string$display_idThe current view display name.
array$form_outputThe form structure. Only needed when inserting the value.

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