You are here

function browsersync_theme in Browsersync 8

Same name and namespace in other branches
  1. 8.2 browsersync.module \browsersync_theme()
  2. 7 browsersync.module \browsersync_theme()

Implements hook_theme().

File

./browsersync.module, line 27
Code for the Browsersync module.

Code

function browsersync_theme($existing, $type, $theme, $path) {
  return [
    'browsersync_snippet' => [
      'variables' => [
        'host' => BROWSERSYNC_DEFAULT_HOST,
        'port' => BROWSERSYNC_DEFAULT_PORT,
      ],
    ],
  ];
}