You are here

public function BlockedLibraryManager::isBlocked in Cookie Content Blocker 8

Check whether a single library is blocked.

Parameters

string $library: The name of the library.

Return value

bool TRUE if the library is blocked, FALSE otherwise.

Overrides BlockedLibraryManagerInterface::isBlocked

File

src/BlockedLibraryManager.php, line 45

Class

BlockedLibraryManager
Manages libraries that are blocked until consent is given.

Namespace

Drupal\cookie_content_blocker

Code

public function isBlocked(string $library) : bool {
  return in_array($library, $this->blockedLibraries, TRUE);
}