Problem/Motivation

The MyrestMetatagStorage class has an overly complex constructor and redundant logic in path matching, which can be optimized for better performance and maintainability.

Proposed resolution

  • Simplify the constructor of MyrestMetatagStorage.
  • Refactor getMyrestMetatagBySourcePath to remove unnecessary checks.
  • Utilize router.route_provider for more reliable route parameter extraction.

Remaining tasks

Refactor storage class and verify path lookup logic.

User interface changes

None.

API changes

Internal refactoring of storage methods.

Data model changes

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

sergeydruua created an issue. See original summary.

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)