Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2016 at 18:15 UTC
Updated:
5 Feb 2016 at 11:14 UTC
Jump to comment: Most recent
We need plugins for formatting typed data, e.g. to format a date using a date format.
Comments
Comment #2
fagoGiven our plans to be twig compatible, we should call this "filters":
https://www.drupal.org/node/2357633
http://jinja.pocoo.org/docs/dev/templates/#builtin-filters
http://jinja.pocoo.org/docs/dev/templates/#builtin-filters
Note that filtering is more generic than formatting, else e.g. default() is no formatter. Also, many filters would work as data processors, but not all of them - so let's keep that separated.
Comment #3
fagohttps://github.com/fago/rules/pull/343
Comment #4
fagoComment #5
fagoThe rest goes into #2654892: Allow using data filters in placeholder tokens.
Comment #6
fagoMerged it.