ViewExecutable::renderPager

public ViewExecutable::renderPager($exposed_input) Renders the pager, if necessary. Parameters string[] $exposed_input: The input values from the exposed forms and sorts of the view. Return value array|string The render array of the pager if it's set, blank string otherwise. File core/modules/views/src/ViewExecutable.php, line 943 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function renderPager($exposed_input) { if (!empty($this->pager)

ViewExecutable::save

public ViewExecutable::save() Saves the view. File core/modules/views/src/ViewExecutable.php, line 473 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function save() { $this->storage->save(); }

ViewExecutable::serialize

public ViewExecutable::serialize() File core/modules/views/src/ViewExecutable.php, line 2472 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function serialize() { return serialize([ // Only serialize the storage entity ID. $this->storage->id(), $this->current_display, $this->args, $this->current_page, $this->exposed_input, $this->exposed_raw_input, $this->exposed_data, $this->dom_id,

ViewExecutable::setAjaxEnabled

public ViewExecutable::setAjaxEnabled($ajax_enabled) Sets whether or not AJAX should be used. If AJAX is used, paging, table sorting, and exposed filters will be fetched via an AJAX call rather than a page refresh. Parameters bool $ajax_enabled: TRUE if AJAX should be used, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 639 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setAjaxEnabled($ajax_enabled) { $this->a

ViewExecutable::setArguments

public ViewExecutable::setArguments(array $args) Sets the arguments for the view. Parameters array $args: The arguments passed to the view. File core/modules/views/src/ViewExecutable.php, line 483 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setArguments(array $args) { // The array keys of the arguments will be incorrect if set by // views_embed_view() or \Drupal\views\ViewExecutable:preview(). $this->args = array_values($args

ViewExecutable::setCurrentPage

public ViewExecutable::setCurrentPage($page) Sets the current page for the pager. Parameters int $page: The current page. File core/modules/views/src/ViewExecutable.php, line 509 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setCurrentPage($page) { $this->current_page = $page; // Calls like ::unserialize() might call this method without a proper $page. // Also check whether the element is pre rendered. At that point, the cache

ViewExecutable::setDisplay

public ViewExecutable::setDisplay($display_id = NULL) Sets the current display. Parameters string $display_id: The ID of the display to mark as current. Return value bool TRUE if the display was correctly set, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 774 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setDisplay($display_id = NULL) { // If we have not already initialized the display, do so. if (!isset($th

ViewExecutable::setExposedInput

public ViewExecutable::setExposedInput($filters) Sets the exposed filters input to an array. Parameters string[] $filters: The values taken from the view's exposed filters and sorts. File core/modules/views/src/ViewExecutable.php, line 659 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setExposedInput($filters) { $this->exposed_input = $filters; }

ViewExecutable::setHandler

public ViewExecutable::setHandler($display_id, $type, $id, $item) Sets the configuration of a handler instance on a given display. Parameters string $display_id: The machine name of the display. string $type: The type of handler being set. string $id: The ID of the handler being set. array|null $item: An array of configuration for a handler, or NULL to remove this instance. See also set_item_option() File core/modules/views/src/ViewExecutable.php, line 2298 Class ViewExecutable Represent

ViewExecutable::setHandlerOption

public ViewExecutable::setHandlerOption($display_id, $type, $id, $option, $value) Sets an option on a handler instance. Use this only if you have just 1 or 2 options to set; if you have many, consider getting the handler instance, adding the options and using set_item() directly. Parameters string $display_id: The machine name of the display. string $type: The type of handler being set. string $id: The ID of the handler being set. string $option: The configuration key for the value being set.