Add config for setting ids and regex patterns

Created on 14 January 2025, 3 months ago

Problem/Motivation

  • Code currently has some todo's to get settings from config.
  • Also a static method is used to execute the alter, would be better to replace this with an instance of the helper service. Adds more flexibility future wise.
  • Optimize the alter by only traversing the definitions array in one go.
  • The permission id is to generic.

Proposed resolution

Add settings to config form to set:

  • ids to match
  • regex patterns to match

Use Drupal::service to execute the alter.
Replace the two foreach loops with a single loop.
Rename the permission, so it's clear this belongs to this module.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium kriboogh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024