You are here

public function CalculatedGroupPermissionsTrait::getItems in Group 2.0.x

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

File

src/Access/CalculatedGroupPermissionsTrait.php, line 29

Class

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

Namespace

Drupal\group\Access

Code

public function getItems() {
  $items = [];
  foreach ($this->items as $scope_items) {
    foreach ($scope_items as $item) {
      $items[] = $item;
    }
  }
  return $items;
}