You are here

public function WebformImageSelectImages::setImages in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Entity

Code

public function setImages(array $images) {
  $this->images = WebformYaml::encode($images);
  $this->imagesDecoded = NULL;
}