original_string: protected function renderCaption($captionConfig)
      {
          if ($captionConfig === false) {
              return '';
          }
  
          $content = ArrayHelper::getValue($captionConfig, 'content', '');
          $alignment = ArrayHelper::getValue($captionConfig, 'align', null);
          $options = ArrayHelper::getValue($captionConfig, 'options', []);
          $options = ArrayHelper::merge($this->captionOptions, $options);
  
          Html::addCssClass($options, ['caption' => 'caption']);
          if ($alignment) {
              Html::addCssClass($options, ['align' => $alignment]);
          }
  
          return Html::tag('div', $content, $options);
      }
code: protected function renderCaption($captionConfig)
      {
          if ($captionConfig === false) {
              return '';
          }
  
          $content = ArrayHelper::getValue($captionConfig, 'content', '');
          $alignment = ArrayHelper::getValue($captionConfig, 'align', null);
          $options = ArrayHelper::getValue($captionConfig, 'options', []);
          $options = ArrayHelper::merge($this->captionOptions, $options);
  
          Html::addCssClass($options, ['caption' => 'caption']);
          if ($alignment) {
              Html::addCssClass($options, ['align' => $alignment]);
          }
  
          return Html::tag('div', $content, $options);
      }
code_tokens: protected function renderCaption ( $ captionConfig ) { if ( $ captionConfig === false ) { return '' ; } $ content = ArrayHelper :: getValue ( $ captionConfig , 'content' , '' ) ; $ alignment = ArrayHelper :: getValue ( $ captionConfig , 'align' , null ) ; $ options = ArrayHelper :: getValue ( $ captionConfig , 'options' , [ ] ) ; $ options = ArrayHelper :: merge ( $ this -> captionOptions , $ options ) ; Html :: addCssClass ( $ options , [ 'caption' => 'caption' ] ) ; if ( $ alignment ) { Html :: addCssClass ( $ options , [ 'align' => $ alignment ] ) ; } return Html :: tag ( 'div' , $ content , $ options ) ; }
docstring: Renders the caption markup.
  @param false|array $captionConfig the caption configuration data
  @return string the markup of the caption
docstring_tokens: Renders the caption markup .