original_string: protected function lookupElementsForNav($element_or_aspect)
      {
          $results = array();
  
          if (substr($element_or_aspect, 0, 1) == '@') {
              $elements = $this->ElementService->findAllWithAspect(substr($element_or_aspect, 1));
              foreach ( $elements as $element ) {
                  $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
              }
          } else {
              // Assume it's an element slug
              $element = $this->ElementService->getBySlug($element_or_aspect);
              $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
          }
  
          return $results;
      }
code: protected function lookupElementsForNav($element_or_aspect)
      {
          $results = array();
  
          if (substr($element_or_aspect, 0, 1) == '@') {
              $elements = $this->ElementService->findAllWithAspect(substr($element_or_aspect, 1));
              foreach ( $elements as $element ) {
                  $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
              }
          } else {
              // Assume it's an element slug
              $element = $this->ElementService->getBySlug($element_or_aspect);
              $results[] = array('Name' => $element->Name, 'URI' => $element->Slug);
          }
  
          return $results;
      }
code_tokens: protected function lookupElementsForNav ( $ element_or_aspect ) { $ results = array ( ) ; if ( substr ( $ element_or_aspect , 0 , 1 ) == '@' ) { $ elements = $ this -> ElementService -> findAllWithAspect ( substr ( $ element_or_aspect , 1 ) ) ; foreach ( $ elements as $ element ) { $ results [ ] = array ( 'Name' => $ element -> Name , 'URI' => $ element -> Slug ) ; } } else { // Assume it's an element slug $ element = $ this -> ElementService -> getBySlug ( $ element_or_aspect ) ; $ results [ ] = array ( 'Name' => $ element -> Name , 'URI' => $ element -> Slug ) ; } return $ results ; }
docstring: REturns all the elements for the specified element or aspect
  
  @param string $element_or_aspect The element or aspect to lookup
  
  @return array
docstring_tokens: REturns all the elements for the specified element or aspect