function CalculatedPermissionsTrait::getItems

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php \Drupal\Core\Session\CalculatedPermissionsTrait::getItems()

File

core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php, line 27

Class

CalculatedPermissionsTrait
Trait for \Drupal\Core\Session\CalculatedPermissionsInterface.

Namespace

Drupal\Core\Session

Code

public function getItems() : array {
    $item_sets = [];
    foreach ($this->items as $scope_items) {
        $item_sets[] = array_values($scope_items);
    }
    return array_merge(...$item_sets);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.