Back to FormHelper class

Method addFilterPrefix

public static array
addFilterPrefix
(mixed $new = null)
Method to add a namespace to the list of filter lookups.
Parameters
  • mixed $new A namespace or array of namespaces to add.
Returns
  • array The list of namespaces that have been added.
Since
  • 4.0.0
Class: FormHelper
Project: Joomla

Method addFilterPrefix - Source code

/**
 * Method to add a namespace to the list of filter lookups.
 *
 * @param   mixed  $new  A namespace or array of namespaces to add.
 *
 * @return  array  The list of namespaces that have been added.
 *
 * @since   4.0.0
 */
public static function addFilterPrefix($new = null)
{
    return self::addPrefix('filter', $new);
}