You are here

protected function ProcessedText::getConfigurationFormProperty in YAML Form 8

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 YamlFormElementBase::getConfigurationFormProperty

File

src/Plugin/YamlFormElement/ProcessedText.php, line 95

Class

ProcessedText
Provides a 'processed_text' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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);
  }
}