
| Current Path : /var/www/html/c12park/web/modules/contrib/webform/src/Element/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/web/modules/contrib/webform/src/Element/WebformComputedInterface.php |
<?php
namespace Drupal\webform\Element;
use Drupal\webform\WebformSubmissionInterface;
/**
* Defines an interface for webform computed element.
*/
interface WebformComputedInterface {
/**
* Denotes HTML.
*
* @var string
*/
const MODE_HTML = 'html';
/**
* Denotes plain text.
*
* @var string
*/
const MODE_TEXT = 'text';
/**
* Denotes markup whose content type should be detected.
*
* @var string
*/
const MODE_AUTO = 'auto';
/**
* Compute value.
*
* @param array $element
* An element.
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*
* @return string
* The computed value.
*/
public static function computeValue(array $element, WebformSubmissionInterface $webform_submission);
}