You are here

function webform_share_theme in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_share/webform_share.module \webform_share_theme()

Implements hook_theme().

File

modules/webform_share/webform_share.module, line 174
Allows webforms to be shared on other websites using an iframe.

Code

function webform_share_theme($existing, $type, $theme, $path) {
  return [
    // Using dedicated html and page template ensures the shared webforms
    // output is as simple as possible.
    'html__webform_share' => [
      'render element' => 'html',
    ],
    'page__webform_share' => [
      'render element' => 'page',
    ],
    'webform_share_iframe' => [
      'render element' => 'element',
    ],
    'webform_share_script' => [
      'render element' => 'element',
    ],
  ];
}