You are here

public function DeployProcessorMemory::publish in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 plugins/DeployProcessorMemory.inc \DeployProcessorMemory::publish()

Processing method that should hand over the aggregator to the endpoint to publish all deployed entities. This method will only be called after successful deployments.

Parameters

integer $deployment_key: The unique deployment key for this deployment.

DeployEndpoint $endpoint: The endpoint object to hand over the aggregator to.

string $lock_name: Optional name of the lock that this deployment is working under.

Overrides DeployProcessor::publish

2 methods override DeployProcessorMemory::publish()
DeployProcessorBatch::publish in plugins/DeployProcessorBatch.inc
Processing method that should hand over the aggregator to the endpoint to publish all deployed entities. This method will only be called after successful deployments.
DeployProcessorQueue::publish in plugins/DeployProcessorQueue.inc
Processing method that should hand over the aggregator to the endpoint to publish all deployed entities. This method will only be called after successful deployments.

File

plugins/DeployProcessorMemory.inc, line 67
In memory plugin for deploy Processor.

Class

DeployProcessorMemory
Class for basic memory-based processing

Code

public function publish($deployment_key, DeployEndpoint $endpoint, $lock_name = NULL) {
  $endpoint
    ->publish($deployment_key, $this->aggregator, $lock_name);
  drupal_set_message(t('Plan %plan has been deployed and published to %endpoint.', array(
    '%plan' => $this->aggregator->plan->title,
    '%endpoint' => $endpoint->title,
  )));
}