You are here

private function DomainListBuilder::sortByWeight in Domain Access 8

Internal sort method for form weights.

File

domain/src/DomainListBuilder.php, line 295

Class

DomainListBuilder
User interface for the domain overview screen.

Namespace

Drupal\domain

Code

private function sortByWeight($a, $b) {
  if ($a['weight'] < $b['weight']) {
    return 0;
  }
  return 1;
}