Problem/Motivation

#2590993: Create stub entities with proper default values introduces use of \Drupal::entityManager() and \Drupal::service('plugin.manager.field.field_type') to Entity-based destinations. These would be better injected.

Proposed resolution

Inject all the things!

Remaining tasks

Add injection to the Entity destination plugin and its derived classes.

User interface changes

N/A

API changes

None

Data model changes

None

Comments

mikeryan created an issue. See original summary.

mikeryan’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Entity manager is already injected, and I added injection of the field type manager to the parent issue.