You are here

public function VideoEmbedIFrame::getInfo in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/Element/VideoEmbedIFrame.php \Drupal\video_embed_field\Element\VideoEmbedIFrame::getInfo()

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

Class

VideoEmbedIFrame
Providers an element design for embedding iframes.

Namespace

Drupal\video_embed_field\Element

Code

public function getInfo() {
  return [
    '#theme' => 'video_embed_iframe',
    '#provider' => '',
    '#url' => '',
    '#query' => [],
    '#attributes' => [],
    '#fragment' => [],
    '#pre_render' => [
      [
        static::class,
        'preRenderInlineFrameEmbed',
      ],
    ],
  ];
}