You are here

public function Textarea::getDefaultProperties in YAML Form 8

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

Overrides TextBase::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/Textarea.php, line 24

Class

Textarea
Provides a 'textarea' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return [
    'title' => '',
    // General settings.
    'description' => '',
    'default_value' => '',
    // Form display.
    'title_display' => '',
    'description_display' => '',
    'field_prefix' => '',
    'field_suffix' => '',
    'placeholder' => '',
    'rows' => '',
    // Form validation.
    'required' => FALSE,
    'required_error' => '',
    'unique' => FALSE,
    'counter_type' => '',
    'counter_maximum' => '',
    'counter_message' => '',
    // Submission display.
    'format' => $this
      ->getDefaultFormat(),
  ] + $this
    ->getDefaultBaseProperties();
}