/**
  * Modify the label.
  *
  * @param ContextualConfig|Config $config The bootstrap config.
  * @param Label                   $label  The label class.
  * @param \Widget                 $widget The widget.
  *
  * @return void
  */
 private function modifyLabel($config, Label $label, \Widget $widget)
 {
     if (!$widget->label || !$this->getWidgetConfigValue($config, $widget->type, 'label', true)) {
         $label->hide();
     } else {
         $label->addClass('control-label');
     }
 }