You are here

public function ViewExecutable::getPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getPath()

Get the base path used for this view.

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

File

core/modules/views/src/ViewExecutable.php, line 1885
Contains \Drupal\views\ViewExecutable.

Class

ViewExecutable
Represents a view as a whole.

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();
}