Problem/Motivation

MyrestNormalizer has hardcoded dependencies on myfacet and myrest_metatag. This prevents the module from being used in environments where these modules are not present.

Proposed resolution

  • Introduce interfaces for the dependent services.
  • Use an event-driven approach (Events or Plugins) to allow other modules to inject data into the normalization process.
  • Ensure the normalizer gracefully handles the absence of optional modules.

Remaining tasks

Refactor the normalizer to remove direct class dependencies.

User interface changes

None.

API changes

Introduction of new events or interfaces for normalization extensibility.

Issue fork myrest-3614981

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

sergeydruua created an issue. See original summary.

  • sergeydruua committed 43da86ef on 1.0.x
    Issue #3614981: Decouple MyrestNormalizer from hardcoded module...
sergeydruua’s picture

Status: Active » 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.

sergeydruua’s picture

Status: Fixed » Closed (fixed)