Issue #3271396 by RenatoG: Implement a validation to set errors when that is...
Issue #3271396 by RenatoG: Implement a validation to set errors when that is special chars on multiple classes when the settings to allow only letters, numbers, hyphen and underlines
// If there is a special chat return the error for the user.
$form_state->setErrorByName('class][third_party_settings][block_class]['.$key,$this->t("In class is allowed only letters, numbers, hyphen and underline"));