You are here

public function SearchPage::getPath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\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;
}