public function WebformOptionsCustom::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_options_custom/src/Element/WebformOptionsCustom.php \Drupal\webform_options_custom\Element\WebformOptionsCustom::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_options_custom/ src/ Element/ WebformOptionsCustom.php, line 57
Class
- WebformOptionsCustom
- Provides an element for a selecting custom options from HTML or SVG markup.
Namespace
Drupal\webform_options_custom\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#process' => [
[
$class,
'processWebformOptionsCustom',
],
[
$class,
'processAjaxForm',
],
],
'#pre_render' => [
[
$class,
'preRenderWebformCompositeFormElement',
],
],
'#options_custom' => NULL,
'#options' => [],
'#template' => '',
'#value_attributes' => 'data-option-value,data-value,data-id,id',
'#text_attributes' => 'data-option-text,data-text,data-name,name,title',
'#fill' => TRUE,
'#zoom' => FALSE,
'#tooltip' => FALSE,
'#show_select' => TRUE,
];
}