Verified Commit 88f4168d authored by quietone's avatar quietone
Browse files

Issue #3498468 by nexusnovaz, avpaderno, wombatbuddy, poker10: The example...

Issue #3498468 by nexusnovaz, avpaderno, wombatbuddy, poker10: The example code given for FormattableMarkup::placeholderFormat() contains typos and syntax errors

(cherry picked from commit 7caa7cbd)
parent 185c51f8
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -113,11 +113,11 @@ public function jsonSerialize(): string {
   * // Wraps $some_variable in an <em> tag.
   * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]);
   * // The following are using the : placeholder inside an HTML tag.
   * $this->placeholderFormat('<a href=":foo">link text</a>, ['@foo' => $some_variable]);
   * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>, ['@foo' => $some_variable]);
   * $this->placeholderFormat('<a href=":foo">@foo</a>, ['@foo' => $some_variable]);
   * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]);
   * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]);
   * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]);
   * // Use : placeholder inside an HTML tag.
   * $this->placeholderFormat('<img src=":foo" />, ['@foo' => '/image.png']);
   * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']);
   * @endcode
   * The above are typical examples of using the placeholders correctly.
   *