Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CalculatedPermissionsInterface.php

function CalculatedPermissionsInterface::getItem

Retrieves a single calculated permission item from a given scope.

Parameters

string $scope: (optional) The scope name to get the item for, defaults to 'drupal'.

string|int $identifier: (optional) The identifier to get the item for, defaults to 'drupal'.

Return value

\Drupal\Core\Session\CalculatedPermissionsItemInterface|false The calculated permission item or FALSE if it could not be found.

File

core/lib/Drupal/Core/Session/CalculatedPermissionsInterface.php, line 23

Class

CalculatedPermissionsInterface
Defines the calculated permissions interface.

Namespace

Drupal\Core\Session

Code

public function getItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL) : CalculatedPermissionsItemInterface|false;
RSS feed
Powered by Drupal