public ViewExecutable::getPath()
Gets the base path used for this view.
Return value
string|false The base path used for the view or FALSE if setting the display fails.
File
- core/modules/views/src/ViewExecutable.php, line 2011
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();
}
Please login to continue.