public function ProcessedText::getDefaultProperties in YAML Form 8
Only a few elements don't inherit these default properties.
Overrides YamlFormMarkupBase::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/ ProcessedText.php, line 23
Class
- ProcessedText
- Provides a 'processed_text' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
return parent::getDefaultProperties() + [
// Markup settings.
'text' => '',
'format' => filter_default_format(\Drupal::currentUser()),
];
}