public function WebformElementAssetInterface::getAssetId in Webform 8.5
Same name and namespace in other branches
- 6.x 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\PluginCode
public function getAssetId();