Back to FormHelper class

Method addRulePrefix

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

Method addRulePrefix - Source code

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