You are here

public function WebformElementAssetInterface::getAssetId in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElementAssetInterface.php \Drupal\webform\Plugin\WebformElementAssetInterface::getAssetId()

Returns the webform element's asset ID.

This is used to prevent duplicate CSS and JavaScript from being appended to a webform.

Return value

string The webform element's asset ID.

1 method overrides WebformElementAssetInterface::getAssetId()
WebformOptionsCustom::getAssetId in modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php
Returns the webform element's asset ID.

File

src/Plugin/WebformElementAssetInterface.php, line 27

Class

WebformElementAssetInterface
Defines the interface for webform elements with CSS and JavaScript assets.

Namespace

Drupal\webform\Plugin

Code

public function getAssetId();