You are here

public function DomainStorageDecorator::sort in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/DomainStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\DomainStorageDecorator::sort()
  2. 4.x webprofiler/src/Entity/Decorators/Config/DomainStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\DomainStorageDecorator::sort()

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.

Overrides DomainStorageInterface::sort

File

webprofiler/src/Entity/Decorators/Config/DomainStorageDecorator.php, line 51

Class

DomainStorageDecorator
Class DomainStorageDecorator

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function sort(DomainInterface $a, DomainInterface $b) {
  return $this
    ->getOriginalObject()
    ->sort($a, $b);
}