Back to Pathway class

Method makeItem

protected \stdClass
makeItem
(mixed $name, mixed $link)
Create and return a new pathway object.
Parameters
  • string $name Name of the item
  • string $link Link to the item
Returns
  • \stdClass Pathway item object
Since
  • 3.1
Class: Pathway
Project: Joomla

Method makeItem - Source code

/**
 * Create and return a new pathway object.
 *
 * @param   string  $name  Name of the item
 * @param   string  $link  Link to the item
 *
 * @return  \stdClass  Pathway item object
 *
 * @since   3.1
 */
protected function makeItem($name, $link)
{
    $item = new \stdClass();
    $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
    $item->link = $link;
    return $item;
}