protected function WebformSubmissionNumericFilter::getFormElementProperty in Webform Views Integration 8.5
Extract a property of a form element.
Parameters
array $element: Form element whose property to extract
string $property: Property to extract
mixed $default: Default value to use when the property is not defined in the provided element
Return value
mixed The property value extracted from form element
File
- src/
Plugin/ views/ filter/ WebformSubmissionNumericFilter.php, line 164
Class
- WebformSubmissionNumericFilter
- Filter based on numeric value of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
protected function getFormElementProperty($element, $property, $default) {
if (isset($element[$property])) {
return $element[$property];
}
return $this->elementInfoManager
->getInfoProperty($element['#type'], $property, $default);
}