Skip to content

Route Entity data producer with non-existing translation #1322

Open
@artemvd

Description

@artemvd

This plugin tries to load entity translation based on the language argument. But in case that translation doesn't exist Drupal's ContentEntityBase class throws exception Invalid translation language ($langcode) specified. .

I suggest to add check if translation exists before trying to get it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions