function CalculatedPermissionsItemInterface::hasPermission
Same name in other branches
- 11.x core/lib/Drupal/Core/Session/CalculatedPermissionsItemInterface.php \Drupal\Core\Session\CalculatedPermissionsItemInterface::hasPermission()
Returns whether this item has a given permission.
Parameters
string $permission: The permission name.
Return value
bool Whether this item has the permission.
1 method overrides CalculatedPermissionsItemInterface::hasPermission()
- CalculatedPermissionsItem::hasPermission in core/
lib/ Drupal/ Core/ Session/ CalculatedPermissionsItem.php - Returns whether this item has a given permission.
File
-
core/
lib/ Drupal/ Core/ Session/ CalculatedPermissionsItemInterface.php, line 51
Class
- CalculatedPermissionsItemInterface
- Defines the calculated permissions item interface.
Namespace
Drupal\Core\SessionCode
public function hasPermission(string $permission) : bool;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.