public function ClientTest::buildAuthenticator in Acquia Connector 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest::buildAuthenticator()
- 3.x tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest::buildAuthenticator()
Build authenticator to sign requests to the Acquia.
Parameters
string $key: Secret key to use for signing the request.
int $request_time: Such as from \Drupal::time()->getRequestTime().
array $params: Optional parameters to include. 'identifier' - Network Identifier.
Return value
array Authenticator array.
Overrides Client::buildAuthenticator
File
- tests/
src/ Unit/ AcquiaConnectorUnitTest.php, line 88 - Contains \Drupal\Tests\acquia_connector\Unit\AcquiaConnectorUnitTest.
Class
Namespace
Drupal\Tests\acquia_connector\UnitCode
public function buildAuthenticator($key, int $request_time, array $params = []) {
$authenticator = parent::buildAuthenticator($key, $request_time, $params);
return $authenticator;
}