Back to HTMLRegistryAwareTrait class

Method setRegistry

public void
setRegistry
(\Joomla\CMS\HTML\Registry $registry = null)
Set the registry to use.
Parameters
  • \Joomla\CMS\HTML\Registry $registry The registry
Returns
  • void
Since
  • 4.0.0

Method setRegistry - Source code

/**
 * Set the registry to use.
 *
 * @param   Registry  $registry  The registry
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function setRegistry(Registry $registry = null)
{
    $this->registry = $registry;
}