function Action::sort
Same name in other branches
- 9 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::sort()
- 8.9.x core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::sort()
- 11.x core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::sort()
Overrides ConfigEntityBase::sort
File
-
core/
modules/ system/ src/ Entity/ Action.php, line 172
Class
- Action
- Defines the configured action entity.
Namespace
Drupal\system\EntityCode
public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) {
/** @var \Drupal\system\ActionConfigEntityInterface $a */
/** @var \Drupal\system\ActionConfigEntityInterface $b */
$a_type = $a->getType();
$b_type = $b->getType();
if ($a_type != $b_type) {
return strnatcasecmp($a_type, $b_type);
}
return parent::sort($a, $b);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.