Problem/Motivation

The getStructureByParagraph method is very long (over 1000 lines) and complex, making it hard to maintain.

Proposed resolution

  • Split the large switch/if-else block into smaller, dedicated methods for each paragraph type.
  • Consider using a plugin system or a registry for paragraph handlers.

Remaining tasks

Break down the method into maintainable pieces.

Issue fork myrest-3593675

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

Assigned: sergeydruua » Unassigned
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)