public function BatOption::getInfo in Booking and Availability Management Tools for Drupal 8
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/
bat_options/ src/ Element/ BatOption.php, line 26 - Contains \Drupal\bat_options\Element\BatOption.
Class
- BatOption
- Plugin annotation @FormElement("bat_option");
Namespace
Drupal\bat_options\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#element_validate' => [
[
$class,
'validateBatOption',
],
],
'#process' => [
[
$class,
'processBatOption',
],
],
'#multiple' => FALSE,
'#attached' => [
'library' => [
'bat_options/options-widget',
],
],
];
}