public function PathPluginBase::getPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::getPath()
Returns the base path to use for this display.
This can be overridden for displays that do strange things with the path.
Overrides DisplayPluginBase::getPath
1 call to PathPluginBase::getPath()
- PathPluginBase::alterRoutes in core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php - Alters a collection of routes and replaces definitions to the view.
File
- core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php, line 92 - Contains \Drupal\views\Plugin\views\display\PathPluginBase.
Class
- PathPluginBase
- The base display plugin for path/callbacks. This is used for pages and feeds.
Namespace
Drupal\views\Plugin\views\displayCode
public function getPath() {
$bits = explode('/', $this
->getOption('path'));
if ($this
->isDefaultTabPath()) {
array_pop($bits);
}
return implode('/', $bits);
}