UserPermissionsRoleSpecificForm::buildForm

public UserPermissionsRoleSpecificForm::buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) Parameters string $role_id: The user role ID used for this form. Overrides UserPermissionsForm::buildForm File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 33 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code public function buildForm(array $form

UserPermissionsRoleSpecificForm::$userRole

The specific role for this form. Type: \Drupal\user\RoleInterface File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 18 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code protected $userRole;

UserPermissionsRoleSpecificForm

Provides the user permissions administration form for a specific role. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Form\UserPermissionsFormclass \Drupal\user\Form\UserPermissionsRoleSpecificForm File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 11 Names

UserPermissionsForm::__construct

public UserPermissionsForm::__construct(PermissionHandlerInterface $permission_handler, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler) Constructs a new UserPermissionsForm. Parameters \Drupal\user\PermissionHandlerInterface $permission_handler: The permission handler. \Drupal\user\RoleStorageInterface $role_storage: The role storage. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. File core/modules/user/src/Form/UserPermissionsFor

UserPermissionsForm::submitForm

UserPermissionsForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/user/src/Form/UserPermissionsForm.php, line 195 Class UserPermissionsForm Provides the user permissions administration form. Namespace Drupal\user\Form Code functio

UserPermissionsForm::getRoles

protected UserPermissionsForm::getRoles() Gets the roles to display in this form. Return value \Drupal\user\RoleInterface[] An array of role objects. File core/modules/user/src/Form/UserPermissionsForm.php, line 78 Class UserPermissionsForm Provides the user permissions administration form. Namespace Drupal\user\Form Code protected function getRoles() { return $this->roleStorage->loadMultiple(); }

UserPermissionsForm::getFormId

public UserPermissionsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/user/src/Form/UserPermissionsForm.php, line 68 Class UserPermissionsForm Provides the user permissions administration form. Namespace Drupal\user\Form Code public function getFormId() { return 'user_admin_permissions'; }

UserPermissionsForm::create

public static UserPermissionsForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

UserPermissionsForm::buildForm

public UserPermissionsForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/user/src/Form/UserPermissionsForm.php, line 85 Class UserPermissionsForm Provides the user permissions administration form. Namespace

UserPermissionsForm::$roleStorage

The role storage. Type: \Drupal\user\RoleStorageInterface File core/modules/user/src/Form/UserPermissionsForm.php, line 29 Class UserPermissionsForm Provides the user permissions administration form. Namespace Drupal\user\Form Code protected $roleStorage;