Loading core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public function addItem(CalculatedPermissionsItemInterface $item, bool $overwrit /** * {@inheritdoc} */ public function removeItem(string $scope, string|int $identifier): self { public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL): self { unset($this->items[$scope][$identifier]); return $this; } Loading core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php +4 −3 Original line number Diff line number Diff line Loading @@ -27,13 +27,14 @@ public function addItem(CalculatedPermissionsItemInterface $item, bool $overwrit * Removes a single calculated permission item from a given scope. * * @param string $scope * The scope name to remove the item from. * (optional) The scope name to remove the item from, defaults to 'drupal'. * @param string|int $identifier * The scope identifier to remove the item from. * (optional) The scope identifier to remove the item from, defaults to * 'drupal'. * * @return self */ public function removeItem(string $scope, string|int $identifier): self; public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL): self; /** * Removes all of the calculated permission items, regardless of scope. Loading Loading
core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public function addItem(CalculatedPermissionsItemInterface $item, bool $overwrit /** * {@inheritdoc} */ public function removeItem(string $scope, string|int $identifier): self { public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL): self { unset($this->items[$scope][$identifier]); return $this; } Loading
core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php +4 −3 Original line number Diff line number Diff line Loading @@ -27,13 +27,14 @@ public function addItem(CalculatedPermissionsItemInterface $item, bool $overwrit * Removes a single calculated permission item from a given scope. * * @param string $scope * The scope name to remove the item from. * (optional) The scope name to remove the item from, defaults to 'drupal'. * @param string|int $identifier * The scope identifier to remove the item from. * (optional) The scope identifier to remove the item from, defaults to * 'drupal'. * * @return self */ public function removeItem(string $scope, string|int $identifier): self; public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL): self; /** * Removes all of the calculated permission items, regardless of scope. Loading