You are here

function deploy_services_client_unpublish_entity_from_plan_endpoints in Deploy Services Client 7

Unpublishes an entity from endpoints associated with a Deployment plan.

Parameters

EntityMetadataWrapper $entity: The entity object to unpublish. Construct this by calling entity_metadata_wrapper() on a normal Drupal entity.

DeployPlan $plan: The Deployment plan object (as returned by deploy_plan_load()) whose endpoints will be contacted to unpublish the entity.

Return value

An array of endpoint names on which the entity existed in a published state and was successfully unpublished.

Throws

DeployAuthenticationException

DeployServiceException

File

./deploy_services_client.module, line 82
Provides a Services client which communicates with Deployment endpoints.

Code

function deploy_services_client_unpublish_entity_from_plan_endpoints(EntityMetadataWrapper $entity, DeployPlan $plan) {
  return _deploy_services_client_call_for_each_endpoint('deploy_services_client_unpublish_entity_from_endpoint', $entity, $plan);
}