You are here

public function DeployEndpoint::load in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 includes/DeployEndpoint.inc \DeployEndpoint::load()

Loads the endpoint.

2 calls to DeployEndpoint::load()
DeployEndpoint::deploy in includes/DeployEndpoint.inc
Deploys all entities over to the endpoint.
DeployEndpoint::publish in includes/DeployEndpoint.inc
Publishes all entities on the endpoint. Happens after deployment.

File

includes/DeployEndpoint.inc, line 66
Base class for Deploy endpoint definitions.

Class

DeployEndpoint
Class representing a deployment endpoint.

Code

public function load() {

  // Since the CTools Export API is declarative by nature, we can't realy on
  // contructor injection and deploy_endpoint_create() as the only factory.
  if (!empty($this->service_plugin)) {
    $service_config = $this->service_config + array(
      'debug' => $this->debug,
    );
    $this->service = new $this->service_plugin($service_config);
  }
  if (!empty($this->authenticator_plugin)) {
    $authenticator_config = $this->authenticator_config + array(
      'debug' => $this->debug,
    );
    $this->authenticator = new $this->authenticator_plugin($this->service, $authenticator_config);
  }
}