Problem/Motivation

The labels for the class select formatter setting should be passed through t() to ensure they're properly escaped and translatable.

Currently, the classnames are filtered when applied, but the labels haven't been filtered.

Proposed resolution

Add a helper method that leverages _field_label_generate_styles() to build an array suitable for use as a Form API #options property.

Comments

justcaldwell created an issue. See original summary.

  • justcaldwell committed 1a4fdb0 on 8.x-1.x
    Issue #3323255: Ensure form option labels are filtered and translatable
    
justcaldwell’s picture

Assigned: justcaldwell » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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