jregistry($data = null)

This function returns an instance of Joomla\Registry\Registry::getInstance(). It allows to handle data coming from extension params or to create setting objects with defaults.

  1. Parameters
  2. Returns
  3. Examples

Parameters

  • mixed $data JSON string Array.

Returns

Joomla\Registry\Registry A registry instance.

Examples


{#  Create a registry object from module parameters #}
{% set params = jregistry(module.params) %} 

{% if params.get('format') === 'short' %}
	<pre>Short format selected in module params</pre>
{% endif %}