public function AvatarsImageRadios::getInfo in Avatar Kit 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 Radios::getInfo
File
- src/
Element/ AvatarsImageRadios.php, line 39
Class
- AvatarsImageRadios
- Provides a form element for a set of radio buttons with images.
Namespace
Drupal\avatars\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#process' => [
[
$class,
'processRadios',
],
],
'#theme_wrappers' => [
'radios',
],
'#pre_render' => [
[
$class,
'preRenderCompositeFormElement',
],
],
'#attached' => [
'library' => [
'avatars/avatars.avatars_image_radios',
],
],
];
}