registerFilter method
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.
@param name The name to register the filter function under. @param function The filter function to register.
Implementation
void registerFilter(String name, FilterFunction function) {
FilterRegistry.register(name, function);
}