public static function SimpleAccessGroup::sort in Simple Access 8.3
Helper callback for uasort() to sort configuration entities by weight and label.
Overrides ConfigEntityBase::sort
File
- src/
Entity/ SimpleAccessGroup.php, line 140
Class
- SimpleAccessGroup
- Defines the SimpleAccessGroup configuration entity class.
Namespace
Drupal\simple_access\EntityCode
public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) {
if ($a
->id() === 'owner') {
return -1;
}
elseif ($b
->id() == 'owner') {
return 1;
}
return parent::sort($a, $b);
}