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);
    }
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);
    }
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 ) ; }
Renders a single carousel item.

@param array $item the item configuration
@return string the item markup
Renders a single carousel item .