Back to FormHelper class

Method addFieldPrefix

public static array
addFieldPrefix
(mixed $new = null)
Method to add a namespace prefix to the list of field lookups.
Parameters
  • mixed $new A namespaces 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 addFieldPrefix - Source code

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