Drupal 8  8.0.2
UserPermissionsForm Class Reference
Inheritance diagram for UserPermissionsForm:

Public Member Functions

 __construct (PermissionHandlerInterface $permission_handler, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 getRoles ()
 

Protected Attributes

 $permissionHandler
 
 $roleStorage
 
 $moduleHandler
 

Detailed Description

Provides the user permissions administration form.

Constructor & Destructor Documentation

__construct ( PermissionHandlerInterface  $permission_handler,
RoleStorageInterface  $role_storage,
ModuleHandlerInterface  $module_handler 
)

Constructs a new UserPermissionsForm.

Parameters
\Drupal\user\PermissionHandlerInterface$permission_handlerThe permission handler.
\Drupal\user\RoleStorageInterface$role_storageThe role storage.
\Drupal\Core\Extension\ModuleHandlerInterfaceThe module handler.

References Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References UserPermissionsForm\getRoles(), Drupal\moduleHandler(), and t().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

getFormId ( )

{}

getRoles ( )
protected

Gets the roles to display in this form.

Returns
[] An array of role objects.

Referenced by UserPermissionsForm\buildForm().

Here is the caller graph for this function:

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References FormStateInterface\getValue(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: