How to tokenize a value in a custom field formatter for views?
I found out how to do this. We have the views object via the parameter "display", so we can use:

$display['views_view']-&gt;style_plugin-&gt;tokenize_value($settings['pager']['active'], 0)


to tokenize a field value.