WebformTestComposite.php in Webform 8.5
Same filename in this branch
Same filename and directory in other branches
File
tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestComposite.phpView source
<?php
namespace Drupal\webform_test_element\Plugin\WebformElement;
use Drupal\webform\Plugin\WebformElement\WebformCompositeBase;
/**
* Provides a 'webform_test_composite' element.
*
* @WebformElement(
* id = "webform_test_composite",
* label = @Translation("Test composite element"),
* description = @Translation("Provides a Webform composite element for testing."),
* multiline = TRUE,
* composite = TRUE,
* states_wrapper = TRUE,
* )
*/
class WebformTestComposite extends WebformCompositeBase {
/**
* {@inheritdoc}
*/
public function preview() {
return [];
}
}
Classes
Name | Description |
---|---|
WebformTestComposite | Provides a 'webform_test_composite' element. |