You are here

public function Item::getDefaultProperties in YAML Form 8

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

Overrides ContainerBase::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/Item.php, line 23

Class

Item
Provides a 'item' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return [
    'title' => '',
    // General settings.
    'description' => '',
    // Form display.
    'title_display' => '',
    'description_display' => '',
    'field_prefix' => '',
    'field_suffix' => '',
    // Form validation.
    'required' => FALSE,
  ] + $this
    ->getDefaultBaseProperties();
}