You are here

public function DeployEndpoint::log_deployed_entities in Deploy - Content Staging 7.3

Logs to watchdog the list of deployed entities.

Parameters

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

Traversable $iterator: Usually this will be an object from a subclass of DeployAggregatorBase.

1 call to DeployEndpoint::log_deployed_entities()
DeployEndpoint::deploy in includes/DeployEndpoint.inc
Deploys all entities over to the endpoint.

File

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

Class

DeployEndpoint
Class representing a deployment endpoint.

Code

public function log_deployed_entities($deployment_key, Traversable $iterator) {
  $entities = [];
  foreach ($iterator
    ->getEntities() as $key => $item) {
    $entities[] = $item['type'] . ': ' . $item['id'];
  }
  watchdog('deployed_content', 'Deployed %deploy_key with entities:</br> %entities', array(
    '%deploy_key' => $deployment_key,
    '%entities' => implode(', ', $entities),
  ));
}