You are here

public function Base::authorize in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::authorize()

Authorize the DRD instance, all validations have passed successfully.

Parameters

string $remoteSetupToken: The token including settings.

Return value

$this

Overrides BaseInterface::authorize

1 call to Base::authorize()
Base::authorizeBySecret in src/Agent/Action/Base.php
Callback to authorize a DRD instance with a given secret.

File

src/Agent/Action/Base.php, line 431

Class

Base
Base class for Remote DRD Action Code.

Namespace

Drupal\drd_agent\Agent\Action

Code

public function authorize($remoteSetupToken) : BaseInterface {

  /* @var \Drupal\drd_agent\Setup $service */
  $service = $this->container
    ->get('drd_agent.setup');
  $service
    ->setRemoteSetupToken($remoteSetupToken)
    ->execute();
  return $this;
}