You are here

interface SnippetBuilderInterface in Hotjar 8

Same name and namespace in other branches
  1. 8.2 src/SnippetBuilderInterface.php \Drupal\hotjar\SnippetBuilderInterface

Interface SnippetBuilderInterface.

@package Drupal\hotjar

Hierarchy

Expanded class hierarchy of SnippetBuilderInterface

All classes that implement SnippetBuilderInterface

1 file declares its use of SnippetBuilderInterface
HotjarAdminSettingsForm.php in src/Form/HotjarAdminSettingsForm.php

File

src/SnippetBuilderInterface.php, line 10

Namespace

Drupal\hotjar
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
SnippetBuilderInterface::createAssets public function Prepares directory for and saves snippet files based on current settings. 1
SnippetBuilderInterface::pageAttachment public function Implements hook_page_attachment(). 1