Factory class Creating entity query objects.
Expanded class hierarchy of QueryFactory
class QueryFactory {
/**
* var \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected $container;
/**
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
*/
function __construct(ContainerInterface $container) {
$this->container = $container;
}
/**
* @param string $entity_type
* @param string $conjunction
* @return QueryInterface
*/
public function get($entity_type, $conjunction = 'AND') {
$service_name = entity_get_controller($entity_type)
->getQueryServicename();
return $this->container
->get($service_name)
->get($entity_type, $conjunction);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QueryFactory:: |
protected | property | var \Symfony\Component\DependencyInjection\ContainerInterface | |
QueryFactory:: |
public | function | ||
QueryFactory:: |
function |