Back to AbstractMenu class

Method getParams

public \Joomla\Registry\Registry
getParams
(mixed $id)
Gets the parameter object for a certain menu item
Parameters
  • int $id The item id
Returns
  • \Joomla\Registry\Registry
Since
  • 1.5
Class: AbstractMenu
Project: Joomla

Method getParams - Source code

/**
 * Gets the parameter object for a certain menu item
 *
 * @param   integer  $id  The item id
 *
 * @return  Registry
 *
 * @since   1.5
 */
public function getParams($id)
{
    if ($menu = $this->getItem($id)) {
        return $menu->getParams();
    }
    return new Registry();
}