public function SearchPage::getWeight in Drupal 10
Same name and namespace in other branches
- 8 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getWeight()
- 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getWeight()
Returns the weight for the page.
Return value
int The page weight.
Overrides SearchPageInterface::getWeight
File
- core/
modules/ search/ src/ Entity/ SearchPage.php, line 173
Class
- SearchPage
- Defines a configured search page.
Namespace
Drupal\search\EntityCode
public function getWeight() {
return $this->weight;
}