Provide default values for an Access Policy API method that was overlooked

Created on 30 May 2024, 7 months ago
Updated 15 June 2024, 6 months ago

Problem/Motivation

We have defaults for the Drupal core scope and identifier all over, example:

  public function getItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL): CalculatedPermissionsItemInterface|false;

But we do not in removeItem():

public function removeItem(string $scope, string|int $identifier): self;

Let's fix this, ideally before we ship 10.3

Steps to reproduce

try to use the API, see that you need to be verbose when calling removeItem();

Proposed resolution

Apply AccessPolicyInterface::SCOPE_DRUPAL defaults to removeItem()

Remaining tasks

Apply AccessPolicyInterface::SCOPE_DRUPAL defaults to removeItem()

User interface changes

/

API changes

AccessPolicyInterface::SCOPE_DRUPAL default on removeItem()

Data model changes

/

Release notes snippet

/

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024