You are here

public function ContainerBase::getDefaultProperties in YAML Form 8

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

Overrides YamlFormElementBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

2 calls to ContainerBase::getDefaultProperties()
Details::getDefaultProperties in src/Plugin/YamlFormElement/Details.php
Only a few elements don't inherit these default properties.
Fieldset::getDefaultProperties in src/Plugin/YamlFormElement/Fieldset.php
Only a few elements don't inherit these default properties.
4 methods override ContainerBase::getDefaultProperties()
Container::getDefaultProperties in src/Plugin/YamlFormElement/Container.php
Only a few elements don't inherit these default properties.
Details::getDefaultProperties in src/Plugin/YamlFormElement/Details.php
Only a few elements don't inherit these default properties.
Fieldset::getDefaultProperties in src/Plugin/YamlFormElement/Fieldset.php
Only a few elements don't inherit these default properties.
Item::getDefaultProperties in src/Plugin/YamlFormElement/Item.php
Only a few elements don't inherit these default properties.

File

src/Plugin/YamlFormElement/ContainerBase.php, line 16

Class

ContainerBase
Provides a base 'container' class.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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