public function ScssNumber::getInfo in SCSS Compiler 1.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 ElementInterface::getInfo
File
- src/
Element/ ScssNumber.php, line 185
Class
- ScssNumber
- A form element to represent Sass numbers with a unit.
Namespace
Drupal\compiler_scss\ElementCode
public function getInfo() {
return [
'#children' => [],
'#element_validate' => [
[
get_class(),
'validateNumber',
],
],
'#input' => TRUE,
'#max' => NULL,
'#min' => NULL,
'#placeholder' => NULL,
'#process' => [
[
get_class(),
'processNumber',
],
],
'#required' => FALSE,
'#step' => NULL,
'#theme' => 'container',
'#theme_wrappers' => [
'form_element',
],
'#title' => NULL,
'#tree' => TRUE,
'#unit_options' => NULL,
'#unit_required' => FALSE,
'#attributes' => [
'class' => [
'container-inline',
],
],
];
}