While trying to get the module working with drupal 8.0.5 I had to apply the attached patch. The id is now protected and you need to use the getId function to access it.

Error log message:

Call to undefined method Drupal\\Core\\Language\\Language::id()
in [...]/languageicons/languageicons.module on line 107

Comments

thrix created an issue. See original summary.

thrix’s picture

Title: Fix access of protected language id in unction template_preprocess_languageicons_link_content » Fix access of protected language id in function template_preprocess_languageicons_link_content
thrix’s picture

Status: Active » Needs review
gngn’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Works for me.

I added the error log message to the summary and set the status to Reviewed and tested.

So, could this be commited?

  • pfrenssen committed 836832d on 8.x-1.x authored by thrix
    Issue #2700237 by thrix: Use getId() instead of id().
    
pfrenssen’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x-1.x, thanks!

Status: Fixed » Closed (fixed)

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

firfin’s picture

Maybe time for a new release? This is a site wrecker for some. And a waste a time for others.

gogowitsch’s picture

I just ran into this in my production server. Why it was working fine just minutes before, I don't immediately understand. It broke when enabling the "Session" LanguageNegotiator.

Please create a new release. If you are looking for a maintainer: I'd be willing to jump in.