You are here

public function Disqus::getInfo in Disqus 8

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/Disqus.php, line 17

Class

Disqus
Provides Disqus render element.

Namespace

Drupal\disqus\Element

Code

public function getInfo() {
  return [
    '#title' => '',
    '#url' => '',
    '#identifier' => '',
    '#callbacks' => [],
    '#attributes' => [
      'id' => 'disqus_thread',
    ],
    '#pre_render' => [
      get_class() . '::generatePlaceholder',
    ],
  ];
}