function QueryBase::getClass
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::getClass()
- 10 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::getClass()
- 11.x core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::getClass()
Finds a class in a list of namespaces.
Parameters
array $namespaces: A list of namespaces.
string $short_class_name: A class name without namespace.
Return value
string The fully qualified name of the class.
10 calls to QueryBase::getClass()
- ConditionAggregate::compile in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ ConditionAggregate.php - Compiles this conditional clause.
- PgsqlQueryFactory::get in core/
modules/ workspaces/ src/ EntityQuery/ PgsqlQueryFactory.php - PgsqlQueryFactory::getAggregate in core/
modules/ workspaces/ src/ EntityQuery/ PgsqlQueryFactory.php - Query::getTables in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Query.php - Gets the Tables object for this query.
- QueryAggregate::conditionAggregateGroupFactory in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ QueryAggregate.php - Creates an object holding a group of conditions.
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php, line 496
Class
- QueryBase
- The base entity query class.
Namespace
Drupal\Core\Entity\QueryCode
public static function getClass(array $namespaces, $short_class_name) {
foreach ($namespaces as $namespace) {
$class = $namespace . '\\' . $short_class_name;
if (class_exists($class)) {
return $class;
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.