You are here

public function oEmbed::getInfo in oEmbed 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

1 method overrides oEmbed::getInfo()
oEmbedThumbnail::getInfo in src/Element/oEmbedThumbnail.php
Returns the element properties for this element.

File

src/Element/oEmbed.php, line 34

Class

oEmbed
Class oEmbed @package Drupal\oembed\Render\Element

Namespace

Drupal\oembed\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#theme' => 'oembed',
    '#embed' => NULL,
    '#parameters' => array(),
    '#attributes' => array(),
    '#pre_render' => array(
      array(
        $class,
        'preRenderFetch',
      ),
      array(
        $class,
        'preRenderRetheme',
      ),
    ),
  );
}