You are here

public function CoreViewsFacetSourceBase::getPath in Core Views Facets 8

Returns the path of the facet source, used to build the facet url.

Return value

string The path.

Overrides FacetSourcePluginInterface::getPath

File

src/Plugin/facets/facet_source/CoreViewsFacetSourceBase.php, line 147

Class

CoreViewsFacetSourceBase
Provide common functions for core Views based facet sources.

Namespace

Drupal\core_views_facets\Plugin\facets\facet_source

Code

public function getPath() {
  $path = $this->view
    ->getPath();
  if ($path[0] !== '/') {
    $path = '/' . $path;
  }
  return $path;
}