The documentation for the function FormattableMarkup::placeholderFormat contains typos

Created on 9 January 2025, 20 days ago

API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Rend...

Expected result

$this->placeholderFormat('link text, [':foo' => $some_variable]);
$this->placeholderFormat('link text, [':foo' => $some_variable]);
$this->placeholderFormat('@foo, [':foo' => $some_variable]);
// Use : placeholder inside an HTML tag.
$this->placeholderFormat(', [':foo' => '/image.png']);

Actual result

$this->placeholderFormat('link text, ['@foo' => $some_variable]);
$this->placeholderFormat('link text, ['@foo' => $some_variable]);
$this->placeholderFormat('@foo, ['@foo' => $some_variable]);
// Use : placeholder inside an HTML tag.
$this->placeholderFormat(', ['@foo' => '/image.png']);

📌 Task
Status

Active

Version

11.0 🔥

Component

documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024