You are here

WebformTestComposite.php in Webform 8.5

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestComposite.php
View 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

Namesort descending Description
WebformTestComposite Provides a 'webform_test_composite' element.