You are here

public function YamlFormMessage::getDefaultProperties in YAML Form 8

Only a few elements don't inherit these default properties.

Overrides YamlFormMarkupBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

File

src/Plugin/YamlFormElement/YamlFormMessage.php, line 23

Class

YamlFormMessage
Provides a 'yamlform_message' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Attributes.
    'attributes' => [],
    // Message settings.
    'message_type' => 'status',
    'message_message' => '',
    'message_close' => FALSE,
    'message_close_effect' => 'slide',
    'message_id' => '',
    'message_storage' => '',
  ];
}