/** * Create and add an item to the pathway. * * @param string $name The name of the item. * @param string $link The link to the item. * * @return boolean True on success * * @since 11.1 */ public function addItem($name, $link = '') { // [!] HUBzero compatibility if (class_exists('\\Breadcrumbs')) { return \Breadcrumbs::append($name, $link); } // Initialize variables $ret = false; if ($this->_pathway[] = $this->_makeItem($name, $link)) { $ret = true; $this->_count++; } return $ret; }