You are here

public function UpdateHelper::keyCheck in Evercurrent 8.2

Same name and namespace in other branches
  1. 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\evercurrent

Code

public function keyCheck($key) {
  return is_string($key) && preg_match(RMH_MD5_MATCH, $key);
}