public ViewExecutable::getUrl($args = NULL, $display_id = NULL)
Gets the URL for the current view.
This URL will be adjusted for arguments.
Parameters
array $args: (optional) Passed in arguments.
string $display_id: (optional) Specify the display ID to link to, fallback to the current ID.
Return value
\Drupal\Core\Url The URL of the current view.
Throws
\InvalidArgumentException Thrown when the current view doesn't have a route available.
File
core/modules/views/src/ViewExecutable.php, line