public function WebformOptionsCustom::getAssetId in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php \Drupal\webform_options_custom\Plugin\WebformElement\WebformOptionsCustom::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.
Overrides WebformElementAssetInterface::getAssetId
File
- modules/
webform_options_custom/ src/ Plugin/ WebformElement/ WebformOptionsCustom.php, line 215
Class
- WebformOptionsCustom
- Provides a custom options element.
Namespace
Drupal\webform_options_custom\Plugin\WebformElementCode
public function getAssetId() {
return $this
->getEntity()
->id();
}