task: #3637458 Add PHP attribute discovery to the Style and StylesGroup plugin managers

Issue: https://www.drupal.org/i/3637458

  • Adds the Style (id, title, group_id, weight) and StylesGroup (id, title, weight, icon) attribute classes; the managers pass attribute plus annotation.
  • The module's 15 own plugins move from annotations to attributes. Annotation classes stay, so plugins in other modules keep working.
  • The attribute classes build on podarok's MR !88 in #3629649, with group_id and icon added.

Verified: phpstan clean locally on Drupal 11.4.11. On a Drupal 11.4 site with Bootstrap Layout Builder the style and group plugin definitions are identical before and after, discovery is AttributeDiscoveryWithAnnotations, and a saved section still renders its classes.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading