interface BlockedLibraryManagerInterface in Cookie Content Blocker 8
Interface BlockedLibraryManagerInterface.
@package Drupal\cookie_content_blocker
Hierarchy
- interface \Drupal\cookie_content_blocker\BlockedLibraryManagerInterface
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_blockerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockedLibraryManagerInterface:: |
public | function | Add a library to the list of blocked libraries. | 1 |
BlockedLibraryManagerInterface:: |
public | function | Get a list of blocked libraries. | 1 |
BlockedLibraryManagerInterface:: |
public | function | Check whether there are any blocked libraries. | 1 |
BlockedLibraryManagerInterface:: |
public | function | Check whether a single library is blocked. | 1 |