public function LayoutSelect::getInfo in Layout Paragraphs 2.0.x
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/ LayoutSelect.php, line 39
Class
- LayoutSelect
- Provides a layout selection element.
Namespace
Drupal\layout_paragraphs\ElementCode
public function getInfo() {
$info = parent::getInfo();
$info += [
'#width' => 40,
'#height' => 60,
'#stroke_width' => 1,
'#padding' => 0,
];
$info['#process'][] = [
__CLASS__,
'processLayoutSelect',
];
return $info;
}