function SearchPageRepository::sortSearchPages
Same name in other branches
- 9 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::sortSearchPages()
- 8.9.x core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::sortSearchPages()
- 10 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::sortSearchPages()
File
-
core/
modules/ search/ src/ SearchPageRepository.php, line 106
Class
- SearchPageRepository
- Provides a repository for Search Page config entities.
Namespace
Drupal\searchCode
public function sortSearchPages($search_pages) {
$entity_type = $this->storage
->getEntityType();
uasort($search_pages, [
$entity_type->getClass(),
'sort',
]);
return $search_pages;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.