TestWebformOffCanvasWidthVariant.php in Webform 8.5
Same filename and directory in other branches
File
tests/modules/webform_test_variant/src/Plugin/WebformVariant/TestWebformOffCanvasWidthVariant.phpView source
<?php
namespace Drupal\webform_test_variant\Plugin\WebformVariant;
use Drupal\webform\Plugin\WebformVariantBase;
use Drupal\webform\Utility\WebformDialogHelper;
/**
* Webform variant off-canvas width.
*
* @WebformVariant(
* id = "test_offcanvas_width",
* label = @Translation("Test off-canvas width"),
* category = @Translation("Test"),
* description = @Translation("Test of a webform variant off-canvas width."),
* )
*/
class TestWebformOffCanvasWidthVariant extends WebformVariantBase {
/**
* {@inheritdoc}
*/
public function getOffCanvasWidth() {
return WebformDialogHelper::DIALOG_WIDE;
}
}
Classes
Name | Description |
---|---|
TestWebformOffCanvasWidthVariant | Webform variant off-canvas width. |