Problem/Motivation

> InvalidArgumentException: Field langcode is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /app/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

with an entity such as a redirect, because this hardcodes the field name:

        $existing_entity->set('langcode', $data_langcode);

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

joachim created an issue. See original summary.

joachim’s picture

Title: ImportService assumed entity langcode field is called 'langcode' » ImportService assumes entity langcode field is called 'langcode'
Status: Active » Needs review

  • joachim committed f1ac7693 on 4.0.x
    [#3548234] fix: ImportService assumes entity langcode field is called '...
joachim’s picture

Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • joachim committed 15471b68 on 8.x-3.x
    [#3548234] fix: ImportService assumes entity langcode field is called '...

Status: Fixed » Closed (fixed)

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