You are here

public function Flot::getInfo in Flot 8

Define the available options for our new render element.

Overrides ElementInterface::getInfo

1 call to Flot::getInfo()
Overview::getInfo in flot_examples/src/Element/Overview.php
Add elements to the parent render array.
1 method overrides Flot::getInfo()
Overview::getInfo in flot_examples/src/Element/Overview.php
Add elements to the parent render array.

File

src/Element/Flot.php, line 18

Class

Flot
Provides a flot render element.

Namespace

Drupal\flot\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#pre_render' => [
      [
        $class,
        'preRenderPlot',
      ],
    ],
    '#attached' => array(),
    '#theme' => 'flot_element',
    '#data' => NULL,
    '#options' => NULL,
    '#id' => NULL,
    '#resizable' => FALSE,
  ];
}