function RefinableCalculatedPermissions::removeItems

Removes all of the calculated permission items, regardless of scope.

Return value

$this

Overrides RefinableCalculatedPermissionsInterface::removeItems

File

core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php, line 39

Class

RefinableCalculatedPermissions
Represents a calculated set of permissions with cacheable metadata.

Namespace

Drupal\Core\Session

Code

public function removeItems() : self {
  $this->items = [];
  return $this;
}

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