Problem/Motivation

Each entity class has logic that processes each field based on its type. This is excessive.

Proposed resolution

Add methods in Entity for processing the replacement of a given field on that entity.

Remaining tasks

Add methods in Entity for processing the replacement of a given field on that entity.
Add test coverage.

User interface changes

n/a

API changes

TBD

Data model changes

n/a

Issue fork scanner-3584659

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

damienmckenna created an issue. See original summary.

damienmckenna’s picture

Assigned: Unassigned » damienmckenna

This needs to:

  • Loop through the enabled fields for the entity.
  • Loop over each item in the field, to allow for multi-value fields.
  • Delegate the field handling to separate methods, which we may split off to separate plugins.

The field search work needs to be done first.

damienmckenna’s picture

This needs to be done before 2.0.0.

damienmckenna’s picture

Status: Active » Needs review

  • damienmckenna committed 90a652b6 on 2.0.x
    Issue #3584659 by DamienMcKenna: Refactored to use the base Entity::...
damienmckenna’s picture

Status: Needs review » Fixed

Committed.

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.

damienmckenna’s picture

Assigned: damienmckenna » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.