You are here

WebformCompositeInterface.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/Element/WebformCompositeInterface.php

File

src/Element/WebformCompositeInterface.php
View source
<?php

namespace Drupal\webform\Element;


/**
 * Defines an interface for webform composite element.
 */
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);

}

Interfaces

Namesort descending Description
WebformCompositeInterface Defines an interface for webform composite element.