You are here

public function WebformOptionsCustom::getJavaScript in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php \Drupal\webform_options_custom\Plugin\WebformElement\WebformOptionsCustom::getJavaScript()

Returns the webform element's JavaScript.

Return value

string The webform element's CSS.

Overrides WebformElementAssetInterface::getJavaScript

1 call to WebformOptionsCustom::getJavaScript()
WebformOptionsCustom::hasAssets in modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php
Determine if the element has assets.

File

modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php, line 229

Class

WebformOptionsCustom
Provides a custom options element.

Namespace

Drupal\webform_options_custom\Plugin\WebformElement

Code

public function getJavaScript() {
  return $this
    ->getEntity()
    ->get('javascript');
}