You are here

public function Setup::setRemoteSetupToken in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x src/Setup.php \Drupal\drd_agent\Setup::setRemoteSetupToken()

Set the remote setup token which contains the configuration.

Parameters

string $remoteSetupToken: The remote setup token.

Return value

$this

1 call to Setup::setRemoteSetupToken()
Setup::checkForRemoteSetupToken in src/Setup.php

File

src/Setup.php, line 61

Class

Setup
Class Setup.

Namespace

Drupal\drd_agent

Code

public function setRemoteSetupToken($remoteSetupToken) : self {
  $values = strtr($remoteSetupToken, [
    '-' => '+',
    '_' => '/',
  ]);
  $this->values = json_decode(base64_decode($values), TRUE);
  return $this;
}