You are here

public function PermissionHandlerInterface::moduleProvidesPermissions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/PermissionHandlerInterface.php \Drupal\user\PermissionHandlerInterface::moduleProvidesPermissions()
  2. 9 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.

File

core/modules/user/src/PermissionHandlerInterface.php, line 64

Class

PermissionHandlerInterface
Defines an interface to list available permissions.

Namespace

Drupal\user

Code

public function moduleProvidesPermissions($module_name);