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);
}
doc_Drupal
2016-10-29 09:54:27
Comments
Leave a Comment

Please login to continue.