diff --git a/core/modules/user/lib/Drupal/user/RoleFormController.php b/core/modules/user/lib/Drupal/user/RoleFormController.php index 145cfec..a7c0d37 100644 --- a/core/modules/user/lib/Drupal/user/RoleFormController.php +++ b/core/modules/user/lib/Drupal/user/RoleFormController.php @@ -19,8 +19,6 @@ class RoleFormController extends EntityFormController { * Overrides EntityFormController::form(). */ public function form(array $form, array &$form_state, EntityInterface $entity) { - $form = parent::form($form, $form_state, $entity); - $form['label'] = array( '#type' => 'textfield', '#title' => t('Role name'), @@ -46,7 +44,7 @@ public function form(array $form, array &$form_state, EntityInterface $entity) { '#value' => $entity->get('weight'), ); - return $form; + return parent::form($form, $form_state, $entity); } /**