You are here

protected function BitbucketManager::getAuth in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 modules/build_hooks_bitbucket/src/BitbucketManager.php \Drupal\build_hooks_bitbucket\BitbucketManager::getAuth()

Get the authentication headers for the request.

Return value

array A list of username,password suitable for passing to guzzle.

2 calls to BitbucketManager::getAuth()
BitbucketManager::getBuildHookDetailsForPluginConfiguration in modules/build_hooks_bitbucket/src/BitbucketManager.php
Converts hook configuration into an api call.
BitbucketManager::retrieveLatestBuilds in modules/build_hooks_bitbucket/src/BitbucketManager.php
Get the latest builds from bitbucket pipelines.

File

modules/build_hooks_bitbucket/src/BitbucketManager.php, line 77

Class

BitbucketManager
Service for managing BitBucket connection details.

Namespace

Drupal\build_hooks_bitbucket

Code

protected function getAuth() {
  return [
    $this->config
      ->get('username'),
    $this->config
      ->get('password'),
  ];
}