public function TextBase::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
1 call to TextBase::getDefaultProperties()
- TextField::getDefaultProperties in src/
Plugin/ YamlFormElement/ TextField.php - Only a few elements don't inherit these default properties.
4 methods override TextBase::getDefaultProperties()
- Hidden::getDefaultProperties in src/
Plugin/ YamlFormElement/ Hidden.php - Only a few elements don't inherit these default properties.
- Textarea::getDefaultProperties in src/
Plugin/ YamlFormElement/ Textarea.php - Only a few elements don't inherit these default properties.
- TextField::getDefaultProperties in src/
Plugin/ YamlFormElement/ TextField.php - Only a few elements don't inherit these default properties.
- Value::getDefaultProperties in src/
Plugin/ YamlFormElement/ Value.php - Only a few elements don't inherit these default properties.
File
- src/
Plugin/ YamlFormElement/ TextBase.php, line 18
Class
- TextBase
- Provides a base 'text' (field) class.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
return parent::getDefaultProperties() + [
'size' => '',
'maxlength' => '',
'placeholder' => '',
'pattern' => '',
];
}