private function SplashifyInjection::getPageGroups in Splashify 8.2
Received all of splash groups that can be displayed on the current page.
Return value
array Array of SplashifyGroupsEntity.
1 call to SplashifyInjection::getPageGroups()
- SplashifyInjection::getSplashes in src/
Service/ SplashifyInjection.php - Received all of splashes that can be displayed on the current page.
File
- src/
Service/ SplashifyInjection.php, line 62
Class
- SplashifyInjection
- Class SplashifyInjection.
Namespace
Drupal\splashify\ServiceCode
private function getPageGroups() {
$groups = SplashifyGroupEntity::loadMultiple();
$page_groups = [];
foreach ($groups as $group) {
if ($this
->checkRole($group) && $this
->checkWhere($group)) {
$page_groups[$group
->id()] = $group;
}
}
return $page_groups;
}