function webform_image_select_lingotek_config_entity_document_upload in Webform 8.5
Implements hook_lingotek_config_entity_document_upload().
File
- modules/
webform_image_select/ webform_image_select.module, line 79 - Provides a webform element for a selecting an image.
Code
function webform_image_select_lingotek_config_entity_document_upload(array &$source_data, ConfigEntityInterface &$entity, &$url) {
switch ($entity
->getEntityTypeId()) {
case 'webform_image_select_images':
// Convert images YAML string to an associative array.
$source_data['images'] = Yaml::decode($source_data['images']);
break;
}
}