Skip to content

Commit

Permalink
Enable replacement of ivw:delivery token
Browse files Browse the repository at this point in the history
  • Loading branch information
freudenberg committed Jan 24, 2017
1 parent 0376606 commit 6e139fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function create(
/**
* Helper callback that alters returned token replacements.
*
* This is needed as we always want "delivery" ("D") set to "2" with FBIA,
* This is needed as we always want "delivery" ("D") set to "2" with AMP,
* but there is no way to configure this outside of the node / term config
* hierarchy.
*
Expand All @@ -138,7 +138,7 @@ public static function alterReplacements(
) {
if (isset($replacements['[ivw:delivery]'])) {
// Token calls the callback after escaping the replacements...
// $replacements['[ivw:delivery]'] = new HtmlEscapedText('2');
$replacements['[ivw:delivery]'] = new HtmlEscapedText('2');
}
}

Expand Down

0 comments on commit 6e139fb

Please sign in to comment.