original_string: protected function prepareEntityItem(array &$item, array $options)
      {
          $this->setItemEntityUrl($item, $options);
          $this->setItemThumb($item, $this->image, $options);
  
          if ($options['entity'] === 'product') {
              $this->prepareProductItem($item, $options);
          } else {
              $this->setItemIndentation($item);
              $this->setItemUrlActive($item);
              $this->setItemRendered($item, array('item' => $item), $options);
          }
      }
code: protected function prepareEntityItem(array &$item, array $options)
      {
          $this->setItemEntityUrl($item, $options);
          $this->setItemThumb($item, $this->image, $options);
  
          if ($options['entity'] === 'product') {
              $this->prepareProductItem($item, $options);
          } else {
              $this->setItemIndentation($item);
              $this->setItemUrlActive($item);
              $this->setItemRendered($item, array('item' => $item), $options);
          }
      }
code_tokens: protected function prepareEntityItem ( array & $ item , array $ options ) { $ this -> setItemEntityUrl ( $ item , $ options ) ; $ this -> setItemThumb ( $ item , $ this -> image , $ options ) ; if ( $ options [ 'entity' ] === 'product' ) { $ this -> prepareProductItem ( $ item , $ options ) ; } else { $ this -> setItemIndentation ( $ item ) ; $ this -> setItemUrlActive ( $ item ) ; $ this -> setItemRendered ( $ item , array ( 'item' => $ item ) , $ options ) ; } }
docstring: Prepare an entity item
  @param array $item
  @param array $options
docstring_tokens: Prepare an entity item