You are here

public function GeneratedFiles::getInfo in Module Builder 8.3

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/GeneratedFiles.php, line 18

Class

GeneratedFiles
Defines a custom form element for a list of generated files to write.

Namespace

Drupal\module_builder\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processFiles',
      ],
    ],
    '#theme' => 'generated_files',
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}