ViewExecutable::setItemsPerPage

public ViewExecutable::setItemsPerPage($items_per_page) Sets the items per page on the pager. Parameters int $items_per_page: The items per page. File core/modules/views/src/ViewExecutable.php, line 565 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setItemsPerPage($items_per_page) { // Check whether the element is pre rendered. At that point, the cache keys // cannot longer be manipulated. if (empty($this->element['#pre_rendere

ViewExecutable::setShowAdminLinks

public ViewExecutable::setShowAdminLinks($show_admin_links) Enables admin links on the rendered view. Parameters bool $show_admin_links: TRUE if the admin links should be shown. File core/modules/views/src/ViewExecutable.php, line 2371 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setShowAdminLinks($show_admin_links) { $this->showAdminLinks = (bool) $show_admin_links; }

ViewExecutable::setOffset

public ViewExecutable::setOffset($offset) Sets the offset on the pager. Parameters int $offset: The pager offset. File core/modules/views/src/ViewExecutable.php, line 602 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setOffset($offset) { // Check whether the element is pre rendered. At that point, the cache keys // cannot longer be manipulated. if (empty($this->element['#pre_rendered'])) { $this->element['#cache']['keys'

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::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::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.

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::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::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::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,