function drush_role_get_class

8.0.x role.drush.inc drush_role_get_class($role_name = DRUPAL_ANONYMOUS_RID)
6.x role.drush.inc drush_role_get_class($role_name = DRUPAL_ANONYMOUS_RID)
7.x role.drush.inc drush_role_get_class($role_name = DRUPAL_ANONYMOUS_RID)
master role.drush.inc drush_role_get_class($role_name = DRUPAL_ANONYMOUS_RID)

Get core version specific Role handler class.

Parameters

string $role_name:

Return value

RoleBase

See also

drush_get_class().

8 calls to drush_role_get_class()
drush_pm_enable in commands/pm/pm.drush.inc
Command callback. Enable one or more extensions from downloaded projects. Note that the modules and themes to be enabled were evaluated during the pm-enable validate hook, above.
drush_role_create in commands/core/role.drush.inc
Create the specified role
drush_role_delete in commands/core/role.drush.inc
Create the specified role
drush_role_list in commands/core/role.drush.inc
Displays a list of roles
drush_role_perm in commands/core/role.drush.inc
Implement permission add / remove operations.

... See full list

File

commands/core/role.drush.inc, line 273

Code

function drush_role_get_class($role_name = DRUPAL_ANONYMOUS_RID) {
  return drush_get_class('Drush\Role\Role', func_get_args());
}