public function DomainStorage::loadMultipleSorted in Domain Access 8
Loads multiple domains and sorts by weight.
Parameters
array $ids: An optional array of specific ids to load.
Return value
\Drupal\domain\DomainInterface[] An array of domain records.
Overrides DomainStorageInterface::loadMultipleSorted
1 call to DomainStorage::loadMultipleSorted()
- DomainStorage::loadOptionsList in domain/
src/ DomainStorage.php - Returns the list of domains formatted for a form options list.
File
- domain/
src/ DomainStorage.php, line 96
Class
- DomainStorage
- Loads Domain records.
Namespace
Drupal\domainCode
public function loadMultipleSorted(array $ids = NULL) {
$domains = $this
->loadMultiple($ids);
uasort($domains, [
$this,
'sort',
]);
return $domains;
}