protected function ProcessedText::getConfigurationFormProperty in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/ProcessedText.php \Drupal\webform\Plugin\WebformElement\ProcessedText::getConfigurationFormProperty()
Get configuration property value.
Parameters
array $properties: An associative array of submitted properties.
string $property_name: The property's name.
mixed $property_value: The property's value.
array $element: The element whose properties are being updated.
Overrides WebformElementBase::getConfigurationFormProperty
File
- src/
Plugin/ WebformElement/ ProcessedText.php, line 121
Class
- ProcessedText
- Provides a 'processed_text' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function getConfigurationFormProperty(array &$properties, $property_name, $property_value, array $element) {
if ($property_name === 'text') {
$properties['text'] = $property_value['value'];
$properties['format'] = $property_value['format'];
}
else {
parent::getConfigurationFormProperty($properties, $property_name, $property_value, $element);
}
}