You are here

public function BlockedLibraryManager::addBlockedLibrary in Cookie Content Blocker 8

Add a library to the list of blocked libraries.

Parameters

string $library: The name of the library.

Overrides BlockedLibraryManagerInterface::addBlockedLibrary

File

src/BlockedLibraryManager.php, line 24

Class

BlockedLibraryManager
Manages libraries that are blocked until consent is given.

Namespace

Drupal\cookie_content_blocker

Code

public function addBlockedLibrary(string $library) : void {
  $this->blockedLibraries[$library] = $library;
}