You are here

function XmlRpc::verifyKey in Production check & Production monitor 8

Helper function to check for correct API key.

File

modules/prod_check_xmlrpc/src/Plugin/ProdCheckProcessor/XmlRpc.php, line 39

Class

XmlRpc
XML-RPC processor

Namespace

Drupal\prod_check_xmlrpc\Plugin\ProdCheckProcessor

Code

function verifyKey($ping_key) {
  $connect_key = $this->configuration['key'];
  $result = FALSE;
  if ($connect_key && $ping_key == $connect_key) {
    $result = TRUE;
  }
  return $result;
}