original_string: protected function _prepareCrumbs($startText, $escape = true)
      {
          deprecationWarning(
              'HtmlHelper::_prepareCrumbs() is deprecated. ' .
              'Use the BreadcrumbsHelper instead.'
          );
  
          $crumbs = $this->_crumbs;
          if ($startText) {
              if (!is_array($startText)) {
                  $startText = [
                      'url' => '/',
                      'text' => $startText
                  ];
              }
              $startText += ['url' => '/', 'text' => __d('cake', 'Home')];
              list($url, $text) = [$startText['url'], $startText['text']];
              unset($startText['url'], $startText['text']);
              array_unshift($crumbs, [$text, $url, $startText + ['escape' => $escape]]);
          }
  
          return $crumbs;
      }
code: protected function _prepareCrumbs($startText, $escape = true)
      {
          deprecationWarning(
              'HtmlHelper::_prepareCrumbs() is deprecated. ' .
              'Use the BreadcrumbsHelper instead.'
          );
  
          $crumbs = $this->_crumbs;
          if ($startText) {
              if (!is_array($startText)) {
                  $startText = [
                      'url' => '/',
                      'text' => $startText
                  ];
              }
              $startText += ['url' => '/', 'text' => __d('cake', 'Home')];
              list($url, $text) = [$startText['url'], $startText['text']];
              unset($startText['url'], $startText['text']);
              array_unshift($crumbs, [$text, $url, $startText + ['escape' => $escape]]);
          }
  
          return $crumbs;
      }
code_tokens: protected function _prepareCrumbs ( $ startText , $ escape = true ) { deprecationWarning ( 'HtmlHelper::_prepareCrumbs() is deprecated. ' . 'Use the BreadcrumbsHelper instead.' ) ; $ crumbs = $ this -> _crumbs ; if ( $ startText ) { if ( ! is_array ( $ startText ) ) { $ startText = [ 'url' => '/' , 'text' => $ startText ] ; } $ startText += [ 'url' => '/' , 'text' => __d ( 'cake' , 'Home' ) ] ; list ( $ url , $ text ) = [ $ startText [ 'url' ] , $ startText [ 'text' ] ] ; unset ( $ startText [ 'url' ] , $ startText [ 'text' ] ) ; array_unshift ( $ crumbs , [ $ text , $ url , $ startText + [ 'escape' => $ escape ] ] ) ; } return $ crumbs ; }
docstring: Prepends startText to crumbs array if set
  
  @param string|array|bool $startText Text to prepend
  @param bool $escape If the output should be escaped or not
  @return array Crumb list including startText (if provided)
  @deprecated 3.3.6 Use the BreadcrumbsHelper instead
docstring_tokens: Prepends startText to crumbs array if set