A free and open-source book on ZF3 for beginners

8.4. About Filter Plugin Manager

In the previous example, you saw that you can use either the fully qualified filter class name or its short alias when instantiating the filter from the array. The short aliases for the standard filters are defined by the FilterPluginManager class.

The FilterPluginManager class defines the short aliases for the standard filters.

A standard filter's alias is typically the same as the class name. For example, the class Zend\Filter\StringTrim has the short alias StringTrim.

The filter plugin manager is internally used by the InputFilter container class for instantiating the standard filters.