function deploy_iterator in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 deploy.module \deploy_iterator()
Constructs a deployment iterator, which is the core of the dependency framework.
3 calls to deploy_iterator()
- DeployAggregatorBase::getIterator in includes/
DeployAggregator.inc - Returns a DeployIteratorIterator, which can iterate through recursive iterators
- deploy_queue_worker_deploy in ./
deploy.module - Processes a single queued item for deployment.
- deploy_queue_worker_publish in ./
deploy.module - Processes a single queued item for publishing.
File
- ./
deploy.module, line 465 - Deploy module functions.
Code
function deploy_iterator($entities, $plan = NULL) {
if (is_null($plan) || empty($plan->dependency_plugin)) {
$iterator = new DeployIterator($entities);
return new EntityDependencyIteratorIterator($iterator);
}
elseif (!empty($plan->dependency_plugin)) {
$class_name = ctools_plugin_load_class('entity_dependency', 'iterator', $plan->dependency_plugin, 'handler');
$iterator = new $class_name($entities);
return new EntityDependencyIteratorIterator($iterator);
}
}