You are here

public function TextFormat::getDefaultFormat in YAML Form 8

Get an element's default format name.

Return value

string An element's default format name.

Overrides YamlFormElementBase::getDefaultFormat

File

src/Plugin/YamlFormElement/TextFormat.php, line 136

Class

TextFormat
Provides a 'text_format' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultFormat() {
  return filter_default_format();
}