ViewExecutable::setRequest

public ViewExecutable::setRequest(Request $request) Sets the request object. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. File core/modules/views/src/ViewExecutable.php, line 1791 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setRequest(Request $request) { $this->request = $request; }

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