Issue #3055319: Constraint violations are not triggered for Roles on a user's account form
1 unresolved thread
Closes #3055319
Merge request reports
Activity
20 21 $form['access']['#value'] = \Drupal::currentUser()->hasPermission('cancel other accounts'); 21 22 } 22 23 24 /** 25 * Implements hook_entity_base_field_info_alter(). 26 */ 27 #[Hook('entity_base_field_info_alter')] 28 public function entityBaseFieldInfoAlter(&$fields, EntityTypeInterface $entity_type): void { 29 if ($entity_type->id() === 'user' && \Drupal::state()->get('user_form_test_constraint_roles_edit')) { This should use key/value per https://www.drupal.org/project/drupal/issues/3506148
changed this line in version 2 of the diff
added 216 commits
-
6fea54ed...50ea7698 - 214 commits from branch
project:11.x
- c63362dc - Merge remote-tracking branch 'origin/11.x' into 3055319-roles-constraint-violations
- 38c6b409 - Replace state with key/value in test coverage
-
6fea54ed...50ea7698 - 214 commits from branch
added 70 commits
-
38c6b409...1a2079a4 - 69 commits from branch
project:11.x
- 848dcf46 - Merge remote-tracking branch 'origin/11.x' into 3055319-roles-constraint-violations
-
38c6b409...1a2079a4 - 69 commits from branch
Please register or sign in to reply