You are here

function yamlform_theme_registry_alter in YAML Form 8

Implements hook_theme_registry_alter().

File

./yamlform.module, line 474
Enables the creation of forms and questionnaires.

Code

function yamlform_theme_registry_alter(&$theme_registry) {

  // Allow attributes to be defined for status messages so that #states
  // can be added to messages.
  // @see \Drupal\yamlform\Element\YamlFormMessage
  if (!isset($theme_registry['status_messages']['variables']['attributes'])) {
    $theme_registry['status_messages']['variables']['attributes'] = [];
  }
}