The exclamation mark ! placeholder is not used in Drupal 8 any more:

https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Render!Forma...

Instead use \Drupal\Component\Render\MarkupInterface object with @ placeholder. It is safe because sanitization and formatting will be done before replacement.

CommentFileSizeAuthor
#2 replace_placeholder-2897948-2.patch1.65 KBdrugan

Comments

drugan created an issue. See original summary.

drugan’s picture

Status: Active » Needs review
StatusFileSize
new1.65 KB

Replaced for @ placeholder.

  • bribread22 committed fb5e432 on 8.x-1.x
    Issue #2897948 by drugan: Fix invalid placeholder (!argument_text) in...
bribread22’s picture

@drugan, thanks for your contribution. I've applied your patch and created a new release (8.x-1.0-rc3).

bribread22’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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