You are here

public function WebformTestOffCanvasWidthElement::getOffCanvasWidth in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestOffCanvasWidthElement.php \Drupal\webform_test_element\Plugin\WebformElement\WebformTestOffCanvasWidthElement::getOffCanvasWidth()

Get configuration form's off-canvas width.

Return value

string The off-canvas width.

Overrides WebformElementBase::getOffCanvasWidth

See also

WebformDialogHelper::DIALOG_NARROW

WebformDialogHelper::DIALOG_NORMAL

WebformDialogHelper::DIALOG_WIDE

WebformDialogHelper::DIALOG_NONE

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestOffCanvasWidthElement.php, line 22

Class

WebformTestOffCanvasWidthElement
Provides a 'webform_test_offcanvas_width_element' element.

Namespace

Drupal\webform_test_element\Plugin\WebformElement

Code

public function getOffCanvasWidth() {
  return WebformDialogHelper::DIALOG_WIDE;
}