WebformBootstrapRenderCallbacks.php in Webform 8.5
File
modules/webform_bootstrap/src/WebformBootstrapRenderCallbacks.php
View source
<?php
namespace Drupal\webform_bootstrap;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Element\RenderCallbackInterface;
class WebformBootstrapRenderCallbacks implements RenderCallbackInterface {
public static function webformLikertPreRender(array $element) {
foreach (Element::children($element) as $element_key) {
if (!empty($element[$element_key]['#description'])) {
$element[$element_key]['#smart_description'] = FALSE;
}
$element[$element_key] = static::webformLikertPreRender($element[$element_key]);
}
return $element;
}
}