You are here

public function ScssColor::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/ScssColor.php, line 28

Class

ScssColor
A form element to represent null-able Sass colors.

Namespace

Drupal\compiler_scss\Element

Code

public function getInfo() {
  return [
    '#children' => [],
    '#element_validate' => [
      [
        get_class(),
        'validateColor',
      ],
    ],
    '#input' => TRUE,
    '#required' => FALSE,
    '#theme' => 'container',
    '#theme_wrappers' => [
      'form_element',
    ],
    '#title' => NULL,
    '#tree' => TRUE,
    '#process' => [
      [
        get_class(),
        'processColor',
      ],
    ],
  ];
}