You are here

public function WebformOptionsCustom::hasAssets in Webform 6.x

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

Determine if the element has assets.

Return value

bool TRUE if the element has assets.

Overrides WebformElementAssetInterface::hasAssets

File

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

Class

WebformOptionsCustom
Provides a custom options element.

Namespace

Drupal\webform_options_custom\Plugin\WebformElement

Code

public function hasAssets() {
  return $this
    ->getCss() || $this
    ->getJavaScript() ? TRUE : FALSE;
}