original_string: protected function renderItem($item = [])
      {
          $tag = ArrayHelper::getValue($item, 'tag', 'div');
          $content = ArrayHelper::getValue($item, 'content', '');
          $options = ArrayHelper::getValue($item, 'options', []);
          $options = ArrayHelper::merge($this->itemOptions, $options);
  
          Html::addCssClass($options, ['item' => 'carousel-item']);
  
          return Html::tag($tag, $content, $options);
      }
code: protected function renderItem($item = [])
      {
          $tag = ArrayHelper::getValue($item, 'tag', 'div');
          $content = ArrayHelper::getValue($item, 'content', '');
          $options = ArrayHelper::getValue($item, 'options', []);
          $options = ArrayHelper::merge($this->itemOptions, $options);
  
          Html::addCssClass($options, ['item' => 'carousel-item']);
  
          return Html::tag($tag, $content, $options);
      }
code_tokens: protected function renderItem ( $ item = [ ] ) { $ tag = ArrayHelper :: getValue ( $ item , 'tag' , 'div' ) ; $ content = ArrayHelper :: getValue ( $ item , 'content' , '' ) ; $ options = ArrayHelper :: getValue ( $ item , 'options' , [ ] ) ; $ options = ArrayHelper :: merge ( $ this -> itemOptions , $ options ) ; Html :: addCssClass ( $ options , [ 'item' => 'carousel-item' ] ) ; return Html :: tag ( $ tag , $ content , $ options ) ; }
docstring: Renders a single carousel item.
  
  @param array $item the item configuration
  @return string the item markup
docstring_tokens: Renders a single carousel item .