You are here

public function WebformElementBase::getRawValue in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getRawValue()

Get an element's submission raw value.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

array $options: An array of options.

Return value

array|string The element's submission value.

Overrides WebformElementInterface::getRawValue

8 calls to WebformElementBase::getRawValue()
Checkboxes::getElementSelectorInputValue in src/Plugin/WebformElement/Checkboxes.php
Get an element's (sub)input selector value.
DateList::getElementSelectorInputValue in src/Plugin/WebformElement/DateList.php
Get an element's (sub)input selector value.
DateTime::getElementSelectorInputValue in src/Plugin/WebformElement/DateTime.php
Get an element's (sub)input selector value.
OptionsBase::buildExportRecord in src/Plugin/WebformElement/OptionsBase.php
Build an element's export row.
OptionsBase::getElementSelectorInputValue in src/Plugin/WebformElement/OptionsBase.php
Get an element's (sub)input selector value.

... See full list

File

src/Plugin/WebformElementBase.php, line 1798

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getRawValue(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  $element['#format'] = 'raw';
  return $this
    ->getValue($element, $webform_submission, $options);
}