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

public ViewExecutable::setResponse(Response $response) Sets the used response object of the view. Parameters \Symfony\Component\HttpFoundation\Response $response: The response object which should be set. File core/modules/views/src/ViewExecutable.php, line 1768 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setResponse(Response $response) { $this->response = $response; }

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

public ViewExecutable::setTitle($title) Overrides the view's current title. The tokens in the title get's replaced before rendering. Return value true Always returns TRUE. File core/modules/views/src/ViewExecutable.php, line 1843 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setTitle($title) { $this->build_info['title'] = $title; return TRUE; }

ViewExecutable::unserialize

public ViewExecutable::unserialize($serialized) File core/modules/views/src/ViewExecutable.php, line 2490 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function unserialize($serialized) { list($storage, $current_display, $args, $current_page, $exposed_input, $exposed_raw_input, $exposed_data, $dom_id, $executed) = unserialize($serialized); // There are cases, like in testing, where we don't have a container // available. if (\Drupal::has

ViewExecutable::usePager

public ViewExecutable::usePager() Determines if the view uses a pager. Return value bool TRUE if the view uses a pager, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 624 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function usePager() { if (!empty($this->pager)) { return $this->pager->usePager(); } }

ViewExecutable::validate

public ViewExecutable::validate() Makes sure the view is completely valid. Return value array An array of error strings. This will be empty if there are no validation errors. File core/modules/views/src/ViewExecutable.php, line 2087 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function validate() { $errors = array(); $this->initDisplay(); $current_display = $this->current_display; foreach ($this->displayHandlers as $id =>

ViewExecutable::_build

public ViewExecutable::_build($key) Builds an individual set of handlers. This is an internal method. @todo Some filter needs this function, even it is internal. Parameters string $key: The type of handlers (filter etc.) which should be iterated over to build the relationship and query information. File core/modules/views/src/ViewExecutable.php, line 1334 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function _build($key) { $handlers = &$t