original_string: protected function renderCrumb($name, $href, $isLast = false, $position = null): string
      {
          $positionAttribute = '';
          if ($this->getOption('position')) {
              $positionAttribute = "data-position=\"{$position}\"";
          }
  
          if ($isLast) {
              $element = $this->getOption('listActiveElement');
              $classes = $this->getClasses('listActiveElementClasses');
  
              return "<{$element} {$positionAttribute} class=\"{$classes}\">{$name}</{$element}>";
          }
          $element = $this->getOption('listItemElement');
          $classes = $this->getClasses('listItemElementClasses');
  
          $divider = '';
  
          if ($this->getDivider() !== null) {
              $divider = $this->getDivider();
              $dividerElement = $this->getOption('dividerElement');
              $dividerClasses = $this->getClasses('dividerElementClasses');
  
              $divider = "<{$dividerElement} class=\"{$dividerClasses}\">{$divider}</{$dividerElement}>";
          }
  
          return "<{$element} {$positionAttribute} class=\"{$classes}\" href=\"{$href}\">{$name}</{$element}>{$divider}";
      }
code: protected function renderCrumb($name, $href, $isLast = false, $position = null): string
      {
          $positionAttribute = '';
          if ($this->getOption('position')) {
              $positionAttribute = "data-position=\"{$position}\"";
          }
  
          if ($isLast) {
              $element = $this->getOption('listActiveElement');
              $classes = $this->getClasses('listActiveElementClasses');
  
              return "<{$element} {$positionAttribute} class=\"{$classes}\">{$name}</{$element}>";
          }
          $element = $this->getOption('listItemElement');
          $classes = $this->getClasses('listItemElementClasses');
  
          $divider = '';
  
          if ($this->getDivider() !== null) {
              $divider = $this->getDivider();
              $dividerElement = $this->getOption('dividerElement');
              $dividerClasses = $this->getClasses('dividerElementClasses');
  
              $divider = "<{$dividerElement} class=\"{$dividerClasses}\">{$divider}</{$dividerElement}>";
          }
  
          return "<{$element} {$positionAttribute} class=\"{$classes}\" href=\"{$href}\">{$name}</{$element}>{$divider}";
      }
code_tokens: protected function renderCrumb ( $ name , $ href , $ isLast = false , $ position = null ) : string { $ positionAttribute = '' ; if ( $ this -> getOption ( 'position' ) ) { $ positionAttribute = "data-position=\"{$position}\"" ; } if ( $ isLast ) { $ element = $ this -> getOption ( 'listActiveElement' ) ; $ classes = $ this -> getClasses ( 'listActiveElementClasses' ) ; return "<{$element} {$positionAttribute} class=\"{$classes}\">{$name}</{$element}>" ; } $ element = $ this -> getOption ( 'listItemElement' ) ; $ classes = $ this -> getClasses ( 'listItemElementClasses' ) ; $ divider = '' ; if ( $ this -> getDivider ( ) !== null ) { $ divider = $ this -> getDivider ( ) ; $ dividerElement = $ this -> getOption ( 'dividerElement' ) ; $ dividerClasses = $ this -> getClasses ( 'dividerElementClasses' ) ; $ divider = "<{$dividerElement} class=\"{$dividerClasses}\">{$divider}</{$dividerElement}>" ; } return "<{$element} {$positionAttribute} class=\"{$classes}\" href=\"{$href}\">{$name}</{$element}>{$divider}" ; }
docstring: Render a crumb.
  
  @param string $name The text/HTML to render within the element.
  @param string $href The link of the crumb.
  @param bool $isLast Whether the crumb is the last item.
  @param number $position The current position of the crumb.
  
  @return string
docstring_tokens: Render a crumb .