You are here

function nodejs_is_valid_service_key in Node.js integration 8

Same name and namespace in other branches
  1. 6 nodejs.module \nodejs_is_valid_service_key()
  2. 7 nodejs.module \nodejs_is_valid_service_key()

Check if the given service key is valid.

1 call to nodejs_is_valid_service_key()
NodejsPages::messageHandler in src/Controller/NodejsPages.php
@todo .

File

./nodejs.module, line 470

Code

function nodejs_is_valid_service_key($service_key) {
  return $service_key == \Drupal::config('nodejs.config')
    ->get('service_key');
}