/** * Set the JPathway items array. * * @param array $pathway An array of pathway objects. * * @return array The previous pathway data. * * @since 11.1 */ public function setPathway($pathway) { // [!] HUBzero compatibility if (class_exists('\\Breadcrumbs')) { $oldPathway = \Breadcrumbs::items(); \Breadcrumbs::clear(); foreach ($pathway as $path) { \Breadcrumbs::append($path); } return $oldPathway; } $oldPathway = $this->_pathway; $pathway = (array) $pathway; // Set the new pathway. $this->_pathway = array_values($pathway); return array_values($oldPathway); }
/** * Tear Down after each test */ public function tearDown() { Breadcrumbs::clear(); }