Problem/Motivation

We should now be able to delete swaths of code from Config Enforce and Config Enforce Devel now that we are using an Off-Canvas dialog (or separate page for non-JS users) to manage enforcement settings. See #3188474: Move the config_enforce form to an off-canvas dialog.

This issue is only for Config Enforce Devel. The Config Enforce issue is: #3556298: Remove unused code after switching to off-canvas dialog form.

Proposed resolution

Delete the unused code, make other updates as needed.

Legend
  • ❌ = class/method to be deleted
  • ✅ = update needed
  • ⚠️ = resolution unclear, needs discussion and careful handling
  • 📄 = docs updates needed

Classes to deprecate in 1.x, delete in 2.x

  • ❌ Drupal\config_enforce_devel\Form\EmbeddedEnforceForm
    • ✅ config_enforce_devel_config_enforce_form_denylist() (referenced by, reference to be removed)
    • ❌ Drupal\config_enforce_devel\FormHandler\ThemeSettingsFormHandlerTrait (used by)
    • 📄 Referenced in inline docs
  • ❌ Drupal\config_enforce_devel\Form\ModalEnforceForm
    • ✅ config_enforce_devel_config_enforce_form_denylist() (referenced by, reference to be removed)
  • ❌ Drupal\config_enforce_devel\Form\ThemeSettingsFormTrait
    • ❌ Drupal\config_enforce_devel\Form\EmbeddedEnforceForm (used by)
  • ❌ Drupal\config_enforce_devel\FormHandler\ThemeSettingsFormHandlerTrait

Methods to deprecate in 1.x, delete in 2.x

  • ❌ Drupal\config_enforce_devel\FormHandler\DevelEnforceFormHandler::addEnforceForm()

Classes that will be refactored; likely to have methods deprecated in 1.x, deleted in 2.x

(form helper trait updates moved to #3556975: Clean up/refactor DevelFormHelperTrait and ModalFormHelperTrait)

Remaining tasks

  • Delete code
  • Test manually
  • Run automated tests and consider adding more tests
  • Deprecate code in 1.0.x branch

User interface changes

Should be none.

API changes

There will be removed classes, methods, etc. which we could mark as deprecated on the 1.0.x branch.

Data model changes

Should be none.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

star-szr created an issue. See original summary.

star-szr’s picture

Issue summary: View changes
star-szr’s picture

star-szr’s picture

Removing the redundant relationship, there is already a parent/child relationship.

star-szr’s picture

Status: Active » Needs work
star-szr’s picture

Issue summary: View changes

Adding another class/function for removal.

  • star-szr committed 0ca97c43 on 2.0.x
    [#3556243] refactor: Remove unused imports
    
    Not intended to be...

  • star-szr committed a910eb99 on 2.0.x
    [#3556243] docs: Remove references to EmbeddedEnforceForm
    

  • star-szr committed 1d768ad0 on 2.0.x
    [#3556243] refactor: Removal of old embedded enforce form code
    
star-szr’s picture

Version: 2.0.x-dev » 1.0.x-dev
Issue summary: View changes

Moving to 1.0.x to consider adding deprecation notices, created #3556975: Clean up/refactor DevelFormHelperTrait and ModalFormHelperTrait to follow up on the form helper traits.

star-szr’s picture

Issue summary: View changes

star-szr’s picture

Issue summary: View changes
star-szr’s picture

Status: Needs work » Needs review

  • star-szr committed 3bb2f1a1 on 1.0.x
    [#3556243] chore: Only test this branch against Drupal 10
    

  • star-szr committed 4070d57b on 1.0.x
    [#3556243] docs: Add deprecations for code removed in 2.0.x branch
    
star-szr’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.