Problem/Motivation

The MyrestHelper class heavily depends on custom entity classes like MyentityNode, MyentityTerm, etc., from the myentity module. This prevents myrest from being a standalone module.

Proposed resolution

  • Replace custom interface type-hints (e.g., MyentityNodeInterface) with standard Drupal core interfaces (e.g., NodeInterface, TermInterface, ContentEntityInterface).
  • Remove use statements for Drupal\myentity\*.

Remaining tasks

Audit methods in MyrestHelper and replace custom types with generic Drupal interfaces.

Issue fork myrest-3582785

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)