public function WebformCard::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_cards/src/Element/WebformCard.php \Drupal\webform_cards\Element\WebformCard::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
File
- modules/
webform_cards/ src/ Element/ WebformCard.php, line 17
Class
- WebformCard
- Provides a render element for a card container.
Namespace
Drupal\webform_cards\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#prev_button_label' => '',
'#next_button_label' => '',
'#process' => [
[
$class,
'processGroup',
],
[
$class,
'processAjaxForm',
],
],
'#pre_render' => [
[
$class,
'preRenderWebformCard',
],
[
$class,
'preRenderGroup',
],
],
'#value' => NULL,
'#theme_wrappers' => [
'webform_card',
],
];
}