You are here

public function YamlFormElementBase::getDefaultFormat in YAML Form 8

Get an element's default format name.

Return value

string An element's default format name.

Overrides YamlFormElementInterface::getDefaultFormat

3 calls to YamlFormElementBase::getDefaultFormat()
Textarea::getDefaultProperties in src/Plugin/YamlFormElement/Textarea.php
Only a few elements don't inherit these default properties.
YamlFormElementBase::getDefaultProperties in src/YamlFormElementBase.php
Only a few elements don't inherit these default properties.
YamlFormElementBase::getFormat in src/YamlFormElementBase.php
Get element's format name by looking for '#format' property, global settings, and finally default settings.
17 methods override YamlFormElementBase::getDefaultFormat()
Captcha::getDefaultFormat in src/Plugin/YamlFormElement/Captcha.php
Get an element's default format name.
Color::getDefaultFormat in src/Plugin/YamlFormElement/Color.php
Get an element's default format name.
ContainerBase::getDefaultFormat in src/Plugin/YamlFormElement/ContainerBase.php
Get an element's default format name.
DateBase::getDefaultFormat in src/Plugin/YamlFormElement/DateBase.php
Get an element's default format name.
Email::getDefaultFormat in src/Plugin/YamlFormElement/Email.php
Get an element's default format name.

... See full list

File

src/YamlFormElementBase.php, line 671

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getDefaultFormat() {
  return 'value';
}