public function FormHelper::applyStandardProcessing in Lightning Core 8.5
Applies standard process functions to a form element.
Parameters
array $element: The form element.
File
- src/
FormHelper.php, line 36
Class
- FormHelper
- Provides helper methods for working with forms and form elements.
Namespace
Drupal\lightning_coreCode
public function applyStandardProcessing(array &$element) {
if (empty($element['#process'])) {
$info = $this->elementInfo
->getInfo($element['#type']);
if (isset($info['#process'])) {
$element['#process'] = $info['#process'];
}
}
}