You are here

function popup_maker_theme in Popup Maker - All popup types 8

Same name and namespace in other branches
  1. 7 popup_maker.module \popup_maker_theme()

Implements hook_theme().

File

./popup_maker.module, line 13
This module holds functions for Popup Maker.

Code

function popup_maker_theme($existing, $type, $theme, $path) {
  return [
    'popup_maker_settings' => [
      'variables' => [
        'settings' => [],
        'token' => NULL,
        'edit' => FALSE,
        'editingPopupId' => NULL,
        'displayRules' => NULL,
      ],
      'template' => 'popup-maker-settings',
    ],
    'popup_maker_display_rule' => [
      'variables' => [
        'rule' => [],
        'index' => '{index}',
        'last' => FALSE,
        'displayRules' => [],
      ],
      'template' => 'display-rule.html.twig',
    ],
  ];
}