You are here

interface YamlFormSubmissionViewBuilderInterface in YAML Form 8

Defines an interface for form view builder classes.

Hierarchy

Expanded class hierarchy of YamlFormSubmissionViewBuilderInterface

All classes that implement YamlFormSubmissionViewBuilderInterface

File

src/YamlFormSubmissionViewBuilderInterface.php, line 11

Namespace

Drupal\yamlform
View source
interface YamlFormSubmissionViewBuilderInterface extends EntityHandlerInterface, EntityViewBuilderInterface {

  /**
   * Build element display items from elements and submitted data.
   *
   * @param array $elements
   *   Form elements.
   * @param array $data
   *   Submission data.
   * @param array $options
   *   - excluded_elements: An array of elements to be excluded.
   *   - email: Format element to be send via email.
   * @param string $format
   *   Output format set to html or text.
   *
   * @return array
   *   A render array displaying the submitted values.
   */
  public function buildElements(array $elements, array $data, array $options = [], $format = 'html');

  /**
   * Build table display from elements and submitted data.
   *
   * @param array $elements
   *   A flattened array form elements that have values.
   * @param array $data
   *   Submission data.
   * @param array $options
   *   - excluded_elements: An array of elements to be excluded.
   *   - email: Format element to be send via email.
   *
   * @return array
   *   A render array displaying the submitted values in a table.
   */
  public function buildTable(array $elements, array $data, array $options = []);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityHandlerInterface::createInstance public static function Instantiates a new instance of this entity handler. 13
EntityViewBuilderInterface::buildComponents public function Builds the component fields and properties of a set of entities. 1
EntityViewBuilderInterface::getCacheTags public function The cache tag associated with this entity view builder. 1
EntityViewBuilderInterface::resetCache public function Resets the entity render cache. 1
EntityViewBuilderInterface::view public function Builds the render array for the provided entity. 1
EntityViewBuilderInterface::viewField public function Builds a renderable array for the value of a single field in an entity. 1
EntityViewBuilderInterface::viewFieldItem public function Builds a renderable array for a single field item. 1
EntityViewBuilderInterface::viewMultiple public function Builds the render array for the provided entities. 1
YamlFormSubmissionViewBuilderInterface::buildElements public function Build element display items from elements and submitted data. 1
YamlFormSubmissionViewBuilderInterface::buildTable public function Build table display from elements and submitted data. 1