Back to ComponentHelper class

Method getParams

public static \Joomla\Registry\Registry
getParams
(mixed $option, mixed $strict = false)
Gets the parameter object for the component
Parameters
  • string $option The option for the component.
  • bool $strict If set and the component does not exist, false will be returned
Returns
  • \Joomla\Registry\Registry A Registry object.
Since
  • 1.5
-
  • \Joomla\Registry\Registry

Method getParams - Source code

/**
 * Gets the parameter object for the component
 *
 * @param   string   $option  The option for the component.
 * @param   boolean  $strict  If set and the component does not exist, false will be returned
 *
 * @return  Registry  A Registry object.
 *
 * @see     Registry
 * @since   1.5
 */
public static function getParams($option, $strict = false)
{
    return static::getComponent($option, $strict)->getParams();
}