You are here

interface WebformCompositeInterface in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Element/WebformCompositeInterface.php \Drupal\webform\Element\WebformCompositeInterface

Defines an interface for webform composite element.

Hierarchy

Expanded class hierarchy of WebformCompositeInterface

All classes that implement WebformCompositeInterface

File

src/Element/WebformCompositeInterface.php, line 8

Namespace

Drupal\webform\Element
View source
interface WebformCompositeInterface {

  /**
   * Get a renderable array of webform elements.
   *
   * @param array $element
   *   A render array for the current element.
   *
   * @return array
   *   A renderable array of webform elements, containing the base properties
   *   for the composite's webform elements.
   */
  public static function getCompositeElements(array $element);

  /**
   * Initialize a composite's elements.
   *
   * @param array $element
   *   A render array for the current element.
   *
   * @return array
   *   A renderable array of webform elements, containing the base properties
   *   for the composite's webform elements.
   */
  public static function initializeCompositeElements(array &$element);

}

Members

Namesort descending Modifiers Type Description Overrides
WebformCompositeInterface::getCompositeElements public static function Get a renderable array of webform elements. 1
WebformCompositeInterface::initializeCompositeElements public static function Initialize a composite's elements. 1