original_string: protected function build_breadcrumb($path) {
          $bread = explode('/', $path);
          $crumbtrail = '';
          foreach ($bread as $crumb) {
              list($id, $name) = $this->explode_node_path($crumb);
              $name = empty($name) ? $id : $name;
              $breadcrumb[] = array(
                  'name' => $name,
                  'path' => $this->build_node_path($id, $name, $crumbtrail)
              );
              $tmp = end($breadcrumb);
              $crumbtrail = $tmp['path'];
          }
          return $breadcrumb;
      }
code: protected function build_breadcrumb($path) {
          $bread = explode('/', $path);
          $crumbtrail = '';
          foreach ($bread as $crumb) {
              list($id, $name) = $this->explode_node_path($crumb);
              $name = empty($name) ? $id : $name;
              $breadcrumb[] = array(
                  'name' => $name,
                  'path' => $this->build_node_path($id, $name, $crumbtrail)
              );
              $tmp = end($breadcrumb);
              $crumbtrail = $tmp['path'];
          }
          return $breadcrumb;
      }
code_tokens: protected function build_breadcrumb ( $ path ) { $ bread = explode ( '/' , $ path ) ; $ crumbtrail = '' ; foreach ( $ bread as $ crumb ) { list ( $ id , $ name ) = $ this -> explode_node_path ( $ crumb ) ; $ name = empty ( $ name ) ? $ id : $ name ; $ breadcrumb [ ] = array ( 'name' => $ name , 'path' => $ this -> build_node_path ( $ id , $ name , $ crumbtrail ) ) ; $ tmp = end ( $ breadcrumb ) ; $ crumbtrail = $ tmp [ 'path' ] ; } return $ breadcrumb ; }
docstring: Build the breadcrumb from a path.
  
  @param string $path to create a breadcrumb from.
  @return array containing name and path of each crumb.
docstring_tokens: Build the breadcrumb from a path .