function PermissionHandlerInterface::moduleProvidesPermissions
Same name in other branches
- 9 core/modules/user/src/PermissionHandlerInterface.php \Drupal\user\PermissionHandlerInterface::moduleProvidesPermissions()
- 10 core/modules/user/src/PermissionHandlerInterface.php \Drupal\user\PermissionHandlerInterface::moduleProvidesPermissions()
- 11.x core/modules/user/src/PermissionHandlerInterface.php \Drupal\user\PermissionHandlerInterface::moduleProvidesPermissions()
Determines whether a module provides some permissions.
Parameters
string $module_name: The module name.
Return value
bool Returns TRUE if the module provides some permissions, otherwise FALSE.
1 method overrides PermissionHandlerInterface::moduleProvidesPermissions()
- PermissionHandler::moduleProvidesPermissions in core/
modules/ user/ src/ PermissionHandler.php - Determines whether a module provides some permissions.
File
-
core/
modules/ user/ src/ PermissionHandlerInterface.php, line 50
Class
- PermissionHandlerInterface
- Defines an interface to list available permissions.
Namespace
Drupal\userCode
public function moduleProvidesPermissions($module_name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.