public function ViewExecutable::getPath

Get the base path used for this view.

1 call to ViewExecutable::getPath()
ViewExecutable::getUrl in drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php
Get the URL for the current view.

File

drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php, line 1716
Definition of Drupal\views\ViewExecutable.

Class

ViewExecutable
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Namespace

Drupal\views

Code

public function getPath() {
  if (!empty($this->override_path)) {
    return $this->override_path;
  }
  if (empty($this->display_handler)) {
    if (!$this
      ->setDisplay('default')) {
      return FALSE;
    }
  }
  return $this->display_handler
    ->getPath();
}