You are here

interface BlockedLibraryManagerInterface in Cookie Content Blocker 8

Interface BlockedLibraryManagerInterface.

@package Drupal\cookie_content_blocker

Hierarchy

Expanded class hierarchy of BlockedLibraryManagerInterface

All classes that implement BlockedLibraryManagerInterface

2 files declare their use of BlockedLibraryManagerInterface
AttachedProcessor.php in src/ElementProcessor/AttachedProcessor.php
HtmlResponseAttachmentsProcessor.php in src/Render/HtmlResponseAttachmentsProcessor.php

File

src/BlockedLibraryManagerInterface.php, line 10

Namespace

Drupal\cookie_content_blocker
View source
interface BlockedLibraryManagerInterface {

  /**
   * Add a library to the list of blocked libraries.
   *
   * @param string $library
   *   The name of the library.
   */
  public function addBlockedLibrary(string $library) : void;

  /**
   * Get a list of blocked libraries.
   *
   * @return string[]
   *   The list of blocked libraries.
   */
  public function getBlockedLibraries() : array;

  /**
   * Check whether there are any blocked libraries.
   *
   * @return bool
   *   TRUE is there is at least one blocked library, FALSE otherwise.
   */
  public function hasBlockedLibraries() : bool;

  /**
   * Check whether a single library is blocked.
   *
   * @param string $library
   *   The name of the library.
   *
   * @return bool
   *   TRUE if the library is blocked, FALSE otherwise.
   */
  public function isBlocked(string $library) : bool;

}

Members

Namesort descending Modifiers Type Description Overrides
BlockedLibraryManagerInterface::addBlockedLibrary public function Add a library to the list of blocked libraries. 1
BlockedLibraryManagerInterface::getBlockedLibraries public function Get a list of blocked libraries. 1
BlockedLibraryManagerInterface::hasBlockedLibraries public function Check whether there are any blocked libraries. 1
BlockedLibraryManagerInterface::isBlocked public function Check whether a single library is blocked. 1