You are here

public function ViewExecutable::setArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::setArguments()

Set the arguments that come to this view. Usually from the URL but possibly from elsewhere.

2 calls to ViewExecutable::setArguments()
ViewExecutable::preExecute in core/modules/views/src/ViewExecutable.php
Run attachments and let the display do what it needs to do prior to running.
ViewExecutable::unserialize in core/modules/views/src/ViewExecutable.php

File

core/modules/views/src/ViewExecutable.php, line 479
Contains \Drupal\views\ViewExecutable.

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);
}