function UserPermissionsModuleSpecificForm::buildForm

Same name in other branches
  1. 9 core/modules/user/src/Form/UserPermissionsModuleSpecificForm.php \Drupal\user\Form\UserPermissionsModuleSpecificForm::buildForm()
  2. 10 core/modules/user/src/Form/UserPermissionsModuleSpecificForm.php \Drupal\user\Form\UserPermissionsModuleSpecificForm::buildForm()

Builds the user permissions administration form for a specific module(s).

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

string $modules: (optional) One or more module machine names, comma-separated.

Overrides UserPermissionsForm::buildForm

File

core/modules/user/src/Form/UserPermissionsModuleSpecificForm.php, line 45

Class

UserPermissionsModuleSpecificForm
Provides the user permissions administration form for one or more module(s).

Namespace

Drupal\user\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $modules = '') : array {
    $this->moduleList = explode(',', $modules);
    return parent::buildForm($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.