protected function CookiesConfigService::sortWeight in COOKiES Consent Management 1.0.x
Compare function to sort by weight.
Parameters
int $a: Compare param.
int $b: Compare param.
Return value
int|\lt Result of comparison.
File
- src/
Services/ CookiesConfigService.php, line 305
Class
- CookiesConfigService
- Services to handle module config and method for a rendered documentation.
Namespace
Drupal\cookies\ServicesCode
protected function sortWeight($a, $b) {
return strcmp($a['weight'], $b['weight']);
}