diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 8c322f23f0957628ce643dc1c61c3293f0eddda7..c01b0b7c5766e9559b590f9662c9d91f9c28acd3 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -23,13 +23,13 @@ use Drupal\webform\WebformInterface; use Drupal\webform\WebformSubmissionStorageInterface; /** - * Implementation of hook_preprocess_form_element(). + * Implements hook_preprocess_form_element(). * * Allows for use of label_class in form elements and will add * any class in label_classes to the label. */ function uw_cfg_common_preprocess_form_element(&$variables) { - if(isset($variables['element']['#label_classes'])) { + if (isset($variables['element']['#label_classes'])) { $variables['label']['#attributes']['class'] = $variables['element']['#label_classes']; } }