You are here

public function WebformOptionsCustom::getCss 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::getCss()

Returns the webform element's CSS.

Return value

string The webform element's CSS.

Overrides WebformElementAssetInterface::getCss

1 call to WebformOptionsCustom::getCss()
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 222

Class

WebformOptionsCustom
Provides a custom options element.

Namespace

Drupal\webform_options_custom\Plugin\WebformElement

Code

public function getCss() {
  return $this
    ->getEntity()
    ->get('css');
}