You are here

WebformTestOffCanvasWidthElement.php in Webform 8.5

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestOffCanvasWidthElement.php
View source
<?php

namespace Drupal\webform_test_element\Plugin\WebformElement;

use Drupal\webform\Plugin\WebformElement\WebformMarkup;
use Drupal\webform\Utility\WebformDialogHelper;

/**
 * Provides a 'webform_test_offcanvas_width_element' element.
 *
 * @WebformElement(
 *   id = "webform_test_offcanvas_width_element",
 *   label = @Translation("Test element off-canvas width"),
 *   description = @Translation("Provides a form element for testing offcanvas width.")
 * )
 */
class WebformTestOffCanvasWidthElement extends WebformMarkup {

  /**
   * {@inheritdoc}
   */
  public function getOffCanvasWidth() {
    return WebformDialogHelper::DIALOG_WIDE;
  }

}

Classes

Namesort descending Description
WebformTestOffCanvasWidthElement Provides a 'webform_test_offcanvas_width_element' element.