registerFilter method

void registerFilter(
  1. String name,
  2. FilterFunction function
)

Registers a new filter function with the given name.

This method adds a new filter function to the FilterRegistry under the specified name. Filters can be used to transform or manipulate data in the context.

name The name to register the filter function under. function The filter function to register.

Implementation

void registerFilter(String name, FilterFunction function) {
  FilterRegistry.register(name, function);
}