public function UpdateHelper::keyCheck in Evercurrent 8.2
Same name and namespace in other branches
- 8 src/UpdateHelper.php \Drupal\evercurrent\UpdateHelper::keyCheck()
Checks to see if the key matches.
Parameters
string $key: A key to check.
Return value
bool Success status.
3 calls to UpdateHelper::keyCheck()
- UpdateHelper::sendUpdates in src/
UpdateHelper.php - Send updates to the Maintenance server.
- UpdateHelper::setKey in src/
UpdateHelper.php - Check a key and set it if valid.
- UpdateHelper::testUpdate in src/
UpdateHelper.php - Test sending an update to the server.
File
- src/
UpdateHelper.php, line 194
Class
- UpdateHelper
- Default UpdateHelper instantiation.
Namespace
Drupal\evercurrentCode
public function keyCheck($key) {
return is_string($key) && preg_match(RMH_MD5_MATCH, $key);
}