public function Base::authorize in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 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 430
Class
- Base
- Base class for Remote DRD Action Code.
Namespace
Drupal\drd_agent\Agent\ActionCode
public function authorize($remoteSetupToken) : BaseInterface {
/* @var \Drupal\drd_agent\Setup $service */
$service = $this->container
->get('drd_agent.setup');
$service
->setRemoteSetupToken($remoteSetupToken)
->execute();
return $this;
}