original_string: protected function renderSlide($slideConfig = [])
      {
          $imageOptions = ArrayHelper::getValue($slideConfig, 'image', []);
          $imageSrc = ArrayHelper::remove($imageOptions, 'src', null);
          if (!$imageSrc) {
              return '';
          }
  
          $caption = $this->renderCaption(ArrayHelper::getValue($slideConfig, 'caption', false));
          $options = ArrayHelper::getValue($slideConfig, 'options', []);
          $options = ArrayHelper::merge($this->slideOptions, $options);
  
          $html[] = Html::beginTag('li', $options);
          $html[] = Html::img($imageSrc, $imageOptions);
          $html[] = $caption;
          $html[] = Html::endTag('li');
          return implode("\n", $html);
      }
code: protected function renderSlide($slideConfig = [])
      {
          $imageOptions = ArrayHelper::getValue($slideConfig, 'image', []);
          $imageSrc = ArrayHelper::remove($imageOptions, 'src', null);
          if (!$imageSrc) {
              return '';
          }
  
          $caption = $this->renderCaption(ArrayHelper::getValue($slideConfig, 'caption', false));
          $options = ArrayHelper::getValue($slideConfig, 'options', []);
          $options = ArrayHelper::merge($this->slideOptions, $options);
  
          $html[] = Html::beginTag('li', $options);
          $html[] = Html::img($imageSrc, $imageOptions);
          $html[] = $caption;
          $html[] = Html::endTag('li');
          return implode("\n", $html);
      }
code_tokens: protected function renderSlide ( $ slideConfig = [ ] ) { $ imageOptions = ArrayHelper :: getValue ( $ slideConfig , 'image' , [ ] ) ; $ imageSrc = ArrayHelper :: remove ( $ imageOptions , 'src' , null ) ; if ( ! $ imageSrc ) { return '' ; } $ caption = $ this -> renderCaption ( ArrayHelper :: getValue ( $ slideConfig , 'caption' , false ) ) ; $ options = ArrayHelper :: getValue ( $ slideConfig , 'options' , [ ] ) ; $ options = ArrayHelper :: merge ( $ this -> slideOptions , $ options ) ; $ html [ ] = Html :: beginTag ( 'li' , $ options ) ; $ html [ ] = Html :: img ( $ imageSrc , $ imageOptions ) ; $ html [ ] = $ caption ; $ html [ ] = Html :: endTag ( 'li' ) ; return implode ( "\n" , $ html ) ; }
docstring: Renders a single slide.
  
  @param array $slideConfig the configuration for the slide
  @return string the slide's markup
docstring_tokens: Renders a single slide .