Field information in Format.php

Field information in Format.php

Manoel WallerManoel Waller Posts: 7Questions: 2Answers: 0

Hi
is there a way to determine which Field is currently being formatted in "Format.php"?
Or in other words: does the setFormatter Method pass on information about the currently formatted field?

Replies

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Interesting question - no I'm afraid there isn't an option for that at the moment, but I can see how it would be useful to use the same formatting function for multiple fields.

    At the moment you'd need to use a closure function that would add that information explicitly.

    Allan

This discussion has been closed.