You are here

SnippetBuilderInterface.php in Hotjar 8.2

Same filename and directory in other branches
  1. 8 src/SnippetBuilderInterface.php

Namespace

Drupal\hotjar

File

src/SnippetBuilderInterface.php
View source
<?php

namespace Drupal\hotjar;


/**
 * Snippet builder service interface.
 *
 * @package Drupal\hotjar
 */
interface SnippetBuilderInterface {

  /**
   * Prepares directory for and saves snippet files based on current settings.
   *
   * @return bool
   *   Whether the files were saved.
   */
  public function createAssets();

  /**
   * Implements hook_page_attachment().
   */
  public function pageAttachment(array &$attachments);

  /**
   * Get Hotjar snippet code.
   *
   * @return mixed|string
   *   Hotjar snippet.
   */
  public function buildSnippet();

}

Interfaces

Namesort descending Description
SnippetBuilderInterface Snippet builder service interface.