You are here

public function CookiesConfigService::getGroup in COOKiES Consent Management 1.0.x

Returns a single cookie_service_group entity by ID.

Parameters

string $group: Group seeking for.

Return value

bool|\Drupal\Core\Entity\EntityInterface Return group Entity or false if none exists.

3 calls to CookiesConfigService::getGroup()
CookiesConfigService::getGroupTranslation in src/Services/CookiesConfigService.php
Returns translations of groups title and details.
CookiesConfigService::getGroupWeight in src/Services/CookiesConfigService.php
Get weight of a group for sort order.
CookiesConfigService::getRenderedCookiesDocs in src/Services/CookiesConfigService.php
Renders the documentation listing.

File

src/Services/CookiesConfigService.php, line 275

Class

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

Namespace

Drupal\cookies\Services

Code

public function getGroup($group) {
  $groups = $this
    ->getServiceGroups();
  return $groups && isset($groups[$group]) ? $groups[$group] : FALSE;
}