public function PermissionEventInterface::hasPermission in Organic groups 8
Returns whether or not the given permission exists.
Parameters
string $name: The name of the permission for which to verify the existance.
Return value
bool TRUE if the permission exists, FALSE otherwise.
1 method overrides PermissionEventInterface::hasPermission()
- PermissionEvent::hasPermission in src/
Event/ PermissionEvent.php - Returns whether or not the given permission exists.
File
- src/
Event/ PermissionEventInterface.php, line 116
Class
- PermissionEventInterface
- Interface for PermissionEvent classes.
Namespace
Drupal\og\EventCode
public function hasPermission($name);