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
1 2 3 4 5 | 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 ); } |
Please login to continue.