You are here

protected function WebformImageSelectImagesForm::getImages in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_image_select/src/WebformImageSelectImagesForm.php \Drupal\webform_image_select\WebformImageSelectImagesForm::getImages()

Get options.

Return value

array An associative array of options.

1 call to WebformImageSelectImagesForm::getImages()
WebformImageSelectImagesForm::form in modules/webform_image_select/src/WebformImageSelectImagesForm.php
Gets the actual form array to be built.

File

modules/webform_image_select/src/WebformImageSelectImagesForm.php, line 170

Class

WebformImageSelectImagesForm
Provides a form to set webform image select images.

Namespace

Drupal\webform_image_select

Code

protected function getImages() {

  /** @var \Drupal\webform_image_select\WebformImageSelectImagesInterface $images */
  $images = $this
    ->getEntity();
  $options = $images
    ->getImages();
  return WebformOptionsHelper::convertOptionsToString($options);
}