You are here

public function DomainStorageInterface::sort in Domain Access 8

Sorts domains by weight.

For use by loadMultipleSorted().

Parameters

DomainInterface $a: The first Domain object to sort.

DomainInterface $b: The Domain object to compare against.

Return value

bool Wether the first domain weight is greater or not.

1 method overrides DomainStorageInterface::sort()
DomainStorage::sort in domain/src/DomainStorage.php
Sorts domains by weight.

File

domain/src/DomainStorageInterface.php, line 71

Class

DomainStorageInterface
Provides an interface for domain entity storage.

Namespace

Drupal\domain

Code

public function sort(DomainInterface $a, DomainInterface $b);