You are here

WebformElementComputedInterface.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/Plugin/WebformElementComputedInterface.php

File

src/Plugin/WebformElementComputedInterface.php
View source
<?php

namespace Drupal\webform\Plugin;

use Drupal\webform\WebformSubmissionInterface;

/**
 * Defines the interface for webform computed elements.
 */
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);

}

Interfaces

Namesort descending Description
WebformElementComputedInterface Defines the interface for webform computed elements.