protected function ProcessedText::setConfigurationFormDefaultValue in YAML Form 8
Set an element's configuration form element default value.
Parameters
array $form: An element's configuration form.
array $element_properties: The element's properties without hash prefix.
array $property_element: The form input used to set an element's property.
string $property_name: THe property's name.
Overrides YamlFormElementBase::setConfigurationFormDefaultValue
File
- src/
Plugin/ YamlFormElement/ ProcessedText.php, line 82
Class
- ProcessedText
- Provides a 'processed_text' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
protected function setConfigurationFormDefaultValue(array &$form, array &$element_properties, array &$property_element, $property_name) {
// Apply element.format to the text (text_format) element and unset it.
if ($property_name == 'text') {
$property_element['#format'] = $element_properties['format'];
unset($element_properties['format']);
}
parent::setConfigurationFormDefaultValue($form, $element_properties, $property_element, $property_name);
}