public ExposedFormCache::getForm($view_id, $display_id)
Retrieves the views exposed form from cache.
Parameters
string $view_id: The views ID.
string $display_id: The current view display name.
Return value
array|bool The form structure, if any, otherwise FALSE.
File
- core/modules/views/src/ExposedFormCache.php, line 45
Class
- ExposedFormCache
- Caches exposed forms, as they are heavy to generate.
Namespace
Drupal\views
Code
1 2 3 4 5 6 7 8 9 | public function getForm( $view_id , $display_id ) { // Return the form output, if any. if ( empty ( $this ->cache[ $view_id ][ $display_id ])) { return FALSE; } else { return $this ->cache[ $view_id ][ $display_id ]; } } |
Please login to continue.