You are here

public function ViewExecutable::getPath in Views (for Drupal 7) 8.3

Get the base path used for this view.

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

File

lib/Drupal/views/ViewExecutable.php, line 1694
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();
}