public static function LinkCheckerLink::generateHash in Link checker 8
Generates a unique hash for identification purposes.
Parameters
string $uri: URI string.
Return value
string Base 64 hash.
Overrides LinkCheckerLinkInterface::generateHash
4 calls to LinkCheckerLink::generateHash()
- LinkCheckerInterfaceTest::getLinkCheckerLinkByUrl in tests/
src/ Functional/ LinkCheckerInterfaceTest.php - Get a link checker link entity by the given URl.
- LinkCheckerLink::preSave in src/
Entity/ LinkCheckerLink.php - Acts on an entity before the presave hook is invoked.
- LinkCheckerLinkExtractionTest::getLinkCheckerLinkByUrl in tests/
src/ Functional/ LinkCheckerLinkExtractionTest.php - Get a link checker link entity by the given URl.
- LinkExtractorService::isLinkExists in src/
LinkExtractorService.php - Checks if link was not removed from content.
File
- src/
Entity/ LinkCheckerLink.php, line 60
Class
- LinkCheckerLink
- Defines the linkcheckerlink type entity.
Namespace
Drupal\linkchecker\EntityCode
public static function generateHash($uri) {
return Crypt::hashBase64($uri);
}