applyFilter method

void applyFilter(
  1. FilterType filter
)

Apply a filter to firstPerson and secondPerson.

This is used by SocialsFactory.getStrings to change the case of the output.

You can also use filters in your social strings, by placing a vertical bar (|) between your social formatter, and the name of the filter.

For example:

%1homepage|url

Implementation

void applyFilter(FilterType filter) {
  firstPerson = filter(firstPerson);
  secondPerson = filter(secondPerson);
}