Problem/Motivation

Individual Site Alerts lack a dedicated "headline" field. While the module makes available a WYSIWYG field for the alert message and a headline can be created within that, it can be useful to have a dedicated "headline" field for alerts, particularly if site administrators wanted to restrict text formats available to editors creating these alerts. The Label field could be made use of for this purpose.

Proposed resolution

This patch proposes adding the value of the Label to the Twig build array so that it's available as an optional token for use in the Twig template if desired.

Remaining tasks

None.

User interface changes

None.

API changes

alert.label is available as a Twig token for use in the alert template.

Data model changes

None.

Comments

iarla created an issue. See original summary.

iarla’s picture

iarla’s picture

Issue summary: View changes

  • cecrs committed 7959291 on 8.x-1.x authored by iarla
    Issue #3054394 by iarla: Alert Label is not available as token to Twig
    
cecrs’s picture

Status: Needs review » Fixed

Looks fine, committed to 1.x-dev. Thanks for the patch!

Status: Fixed » Closed (fixed)

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