You are here

public function DelegatableRolesInterface::getAssignableRoles in Role Delegation 8

Gets the roles a user is allowed to assing.

Parameters

\Drupal\Core\Session\AccountInterface $account: The account for which you want to know which roles they can assign.

Return value

array An array of roles with machine names as keys and labels as values.

1 method overrides DelegatableRolesInterface::getAssignableRoles()
DelegatableRoles::getAssignableRoles in src/DelegatableRoles.php
Gets the roles a user is allowed to assing.

File

src/DelegatableRolesInterface.php, line 23

Class

DelegatableRolesInterface
Interface DelegatableRolesInterface.

Namespace

Drupal\role_delegation

Code

public function getAssignableRoles(AccountInterface $account);