JsonldBundle has confused me in #1850704: Available serialization formats: we only have one encoder so the foreach loop makes it unnecessarily complex.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klausi’s picture

Simple patch attached.

klausi’s picture

Fixed comment style that linclark pointed out.

Anonymous’s picture

Title: Remove encoder array as there is only one encoder » Remove JSON-LD encoder array as there is only one JDON-LD encoder

This looks good to me. There were originally two encoders, so that's probably how this ended up being an array.

Once it's green, it's fine for RTBC.

Anonymous’s picture

Title: Remove JSON-LD encoder array as there is only one JDON-LD encoder » Remove JSON-LD encoder array as there is only one JSON-LD encoder
klausi’s picture

Status: Needs review » Reviewed & tested by the community

RTBC per #4.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Looks much nicer. Committed/pushed to 8.x, thanks!

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