public function WebformComputedBase::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformComputedBase.php \Drupal\webform\Element\WebformComputedBase::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
1 call to WebformComputedBase::getInfo()
- WebformComputedTwig::getInfo in src/
Element/ WebformComputedTwig.php - Returns the element properties for this element.
1 method overrides WebformComputedBase::getInfo()
- WebformComputedTwig::getInfo in src/
Element/ WebformComputedTwig.php - Returns the element properties for this element.
File
- src/
Element/ WebformComputedBase.php, line 33
Class
- WebformComputedBase
- Provides a base class for 'webform_computed' elements.
Namespace
Drupal\webform\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#process' => [
[
$class,
'processWebformComputed',
],
],
'#input' => TRUE,
'#template' => '',
'#mode' => NULL,
'#hide_empty' => FALSE,
// Note: Computed elements do not use the default #ajax wrapper, which is
// why we can use #ajax as a boolean.
// @see \Drupal\Core\Render\Element\RenderElement::preRenderAjaxForm
'#ajax' => FALSE,
'#webform_submission' => NULL,
'#theme_wrappers' => [
'form_element',
],
];
}