Drupal “Rewrite the output of this field” replacement patterns

As a quick note, if you’re looking at a Drupal form and it says you can use the "Rewrite the output of this field" replacement patterns shown (somewhere) on this page — and you can’t find those replacement patterns on that page — you can find a complete list of them at this drupal.org url.

As an example, if you’re working with a Drupal Node, you can use replacement patterns like these:


Two notes:

  1. Those are just a few of the many replacement patterns that are available.
  2. Those replacement patterns won’t work in all places. Most forms only support a limited subset of them.

I was just working on trying to add a style to a Drupal 8 view, and had no idea where the "Rewrite the output of this field" replacement patterns were supposed to be found, and that page helped me find what I needed.

See that URL for many more patterns, and more information.