public function WebformImageSelectImages::setImages in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_image_select/src/Entity/WebformImageSelectImages.php \Drupal\webform_image_select\Entity\WebformImageSelectImages::setImages()
Set images (YAML) value.
Parameters
array $images: An renderable array of images.
Return value
$this
Overrides WebformImageSelectImagesInterface::setImages
File
- modules/
webform_image_select/ src/ Entity/ WebformImageSelectImages.php, line 128
Class
- WebformImageSelectImages
- Defines the webform image select images entity.
Namespace
Drupal\webform_image_select\EntityCode
public function setImages(array $images) {
$this->images = WebformYaml::encode($images);
$this->imagesDecoded = NULL;
}