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.
Parameters
-
mixed
$data JSON stringArray.
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 %}