
| Current Path : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Session/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/lib/Drupal/Core/Session/CalculatedPermissionsItemInterface.php |
<?php
namespace Drupal\Core\Session;
/**
* Defines the calculated permissions item interface.
*/
interface CalculatedPermissionsItemInterface {
/**
* Returns the scope of the calculated permissions item.
*
* @return string
* The scope name.
*/
public function getScope(): string;
/**
* Returns the identifier within the scope.
*
* @return string|int
* The identifier.
*/
public function getIdentifier(): string|int;
/**
* Returns the permissions for the calculated permissions item.
*
* @return string[]
* The permission names.
*/
public function getPermissions(): array;
/**
* Returns whether this item grants admin privileges in its scope.
*
* @return bool
* Whether this item grants admin privileges.
*/
public function isAdmin(): bool;
/**
* Returns whether this item has a given permission.
*
* @param string $permission
* The permission name.
*
* @return bool
* Whether this item has the permission.
*/
public function hasPermission(string $permission): bool;
}