protected function ListPaymentStatuses::sort in Payment 8.2
Implements uasort() callback to sort plugin definitions by label.
File
- src/
Controller/ ListPaymentStatuses.php, line 164
Class
- ListPaymentStatuses
- Handles the "list payment methods" route.
Namespace
Drupal\payment\ControllerCode
protected function sort(array $definition_a, array $definition_b) {
return strcmp($definition_a['label'], $definition_b['label']);
}