You are here

interface WebformElementComputedInterface in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElementComputedInterface.php \Drupal\webform\Plugin\WebformElementComputedInterface

Defines the interface for webform computed elements.

Hierarchy

Expanded class hierarchy of WebformElementComputedInterface

All classes that implement WebformElementComputedInterface

3 files declare their use of WebformElementComputedInterface
Webform.php in src/Entity/Webform.php
WebformCompositeBase.php in src/Plugin/WebformElement/WebformCompositeBase.php
WebformComputedBase.php in src/Plugin/WebformElement/WebformComputedBase.php

File

src/Plugin/WebformElementComputedInterface.php, line 10

Namespace

Drupal\webform\Plugin
View source
interface WebformElementComputedInterface {

  /**
   * Compute value.
   *
   * @param array $element
   *   An element.
   * @param \Drupal\webform\WebformSubmissionInterface $webform_submission
   *   A webform submission.
   *
   * @return string
   *   The computed value.
   */
  public function computeValue(array $element, WebformSubmissionInterface $webform_submission);

}

Members