You are here

protected function CookiesConfigService::getGroupWeight in COOKiES Consent Management 1.0.x

Get weight of a group for sort order.

Parameters

string $group: Group seeking for.

Return value

int The group weight

1 call to CookiesConfigService::getGroupWeight()
CookiesConfigService::getGroups in src/Services/CookiesConfigService.php
Returns the complete groups config.

File

src/Services/CookiesConfigService.php, line 289

Class

CookiesConfigService
Services to handle module config and method for a rendered documentation.

Namespace

Drupal\cookies\Services

Code

protected function getGroupWeight($group) {
  $group = $this
    ->getGroup($group);
  return $group ? (int) $group
    ->get('weight') : 99;
}