function SearchPage::getPath

Returns the path for the search.

Return value

string The part of the path for this search page that comes after 'search'.

Overrides SearchPageInterface::getPath

File

core/modules/search/src/Entity/SearchPage.php, line 166

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

public function getPath() {
  return $this->path;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.