You are here

public function CalculatedGroupPermissionsTrait::getItemsByScope in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/CalculatedGroupPermissionsTrait.php \Drupal\group\Access\CalculatedGroupPermissionsTrait::getItemsByScope()

File

src/Access/CalculatedGroupPermissionsTrait.php, line 42

Class

CalculatedGroupPermissionsTrait
Trait for \Drupal\group\Access\CalculatedGroupPermissionsInterface.

Namespace

Drupal\group\Access

Code

public function getItemsByScope($scope) {
  return isset($this->items[$scope]) ? array_values($this->items[$scope]) : [];
}