You are here

public function WebformOptionsCustom::getTemplateOptions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_options_custom/src/Entity/WebformOptionsCustom.php \Drupal\webform_options_custom\Entity\WebformOptionsCustom::getTemplateOptions()

Get template custom options.

Return value

array A templates custom options.

Overrides WebformOptionsCustomInterface::getTemplateOptions

File

modules/webform_options_custom/src/Entity/WebformOptionsCustom.php, line 364

Class

WebformOptionsCustom
Defines the webform options custom entity.

Namespace

Drupal\webform_options_custom\Entity

Code

public function getTemplateOptions() {
  $element = $this
    ->getElement();
  WebformOptionsCustomElement::setTemplateOptions($element);
  return $element['#options'];
}