You are here

function iframe_theme in Iframe 8.2

Same name and namespace in other branches
  1. 6 iframe.module \iframe_theme()

Implements hook_theme().

File

./iframe.module, line 69
Defines an iframe field with all attributes.

Code

function iframe_theme() {
  return [
    /* template name "iframe" => templates/iframe.html.twig */
    'iframe' => [
      'variables' => [
        'src' => 'src',
        'attributes' => [],
        'text' => '',
        'style' => '',
      ],
      'template' => 'iframe',
    ],
  ];
}