Ejemplo n.º 1
0
 /**
  * Create and return an array of the pathway names.
  *
  * @return  array  Array of names of pathway items
  *
  * @since   11.1
  */
 public function getPathwayNames()
 {
     // [!] HUBzero compatibility
     if (class_exists('\\Breadcrumbs')) {
         return \Breadcrumbs::names();
     }
     // Initialise variables.
     $names = array(null);
     // Build the names array using just the names of each pathway item
     foreach ($this->_pathway as $item) {
         $names[] = $item->name;
     }
     //Use array_values to reset the array keys numerically
     return array_values($names);
 }