Back to LibraryHelper class

Method getParams

public static \Joomla\Registry\Registry
getParams
(mixed $element, mixed $strict = false)
Gets the parameter object for the library
Parameters
  • string $element Element of the library in the extensions table.
  • bool $strict If set and the library does not exist, false will be returned
Returns
  • \Joomla\Registry\Registry A Registry object.
Since
  • 3.2
-
  • \Joomla\Registry\Registry
Class: LibraryHelper
Project: Joomla

Method getParams - Source code

/**
 * Gets the parameter object for the library
 *
 * @param   string   $element  Element of the library in the extensions table.
 * @param   boolean  $strict   If set and the library does not exist, false will be returned
 *
 * @return  Registry  A Registry object.
 *
 * @see     Registry
 * @since   3.2
 */
public static function getParams($element, $strict = false)
{
    return static::getLibrary($element, $strict)->params;
}