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
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
Comment #3
sergeydruua commentedComment #5
sergeydruua commented