Thanks for a great module!

Problem/motivation:
When selecting LANGUAGE -> Rendering language: Content language of view row view breaks and throws error.

The reason seems to be that in file src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php
ConfigurableLanguageRenderer was implemented as an abstract class, which couldn't instantiate.

We've tried to create a temporary patch which makes the class non-abstract and implements the query and render methods (same as in TranslationLanguageRenderer.php).

Proposed solution:
Make the ConfigurableLanguageRenderer non-abstract.
There also seems to be a need to solve this for the other render classes.

Please let us know if we can help further to move this issue forward for a stable release, so that there won't be a need for a patch.

Kind regards

Leander

Comments

leanderl created an issue. See original summary.

leanderl’s picture

pol’s picture

Status: Active » Needs work

Hi,

Your patch and contribution are more than welcome.
As I don't use this module for now, I'll be glad to commit patches for sure.

Is this patch the final version ?

Thanks.

leanderl’s picture

Hello Pol, yes the patch works for us in our project.

But I must admit I don't have the full picture of how the module works and haven't analyzed it in depth.
I'm a little puzzled as to why those classes (src/Plugin/views/Entity/Render/...) are abstract to begin with.

johnpicozzi’s picture

This patch resolved the error for me RTBC +1

  • Pol committed d7fa980 on 8.x-1.x authored by leanderl
    Issue #2924342 by leanderl: Broken when rendering language set to "...
pol’s picture

Status: Needs work » Fixed

Ok, I do trust you guys :-)

Status: Fixed » Closed (fixed)

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