public function Setup::setRemoteSetupToken in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 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()
File
- src/
Setup.php, line 61
Class
- Setup
- Class Setup.
Namespace
Drupal\drd_agentCode
public function setRemoteSetupToken($remoteSetupToken) : self {
$values = strtr($remoteSetupToken, [
'-' => '+',
'_' => '/',
]);
$this->values = json_decode(base64_decode($values), TRUE);
return $this;
}