Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
07b878de
Commit
07b878de
authored
11 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2191721
by divesh.kumar: Drupal\Core\Entity\Query\Sql\Condition class has no docblock.
parent
d861851e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
+6
-3
6 additions, 3 deletions
core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
with
6 additions
and
3 deletions
core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
+
6
−
3
View file @
07b878de
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
use
Drupal\Core\Database\Query\SelectInterface
;
use
Drupal\Core\Database\Query\SelectInterface
;
use
Drupal\Core\Database\Query\Condition
as
SqlCondition
;
use
Drupal\Core\Database\Query\Condition
as
SqlCondition
;
/**
* Implements entity query conditions for SQL databases.
*/
class
Condition
extends
ConditionBase
{
class
Condition
extends
ConditionBase
{
/**
/**
...
@@ -22,7 +25,7 @@ class Condition extends ConditionBase {
...
@@ -22,7 +25,7 @@ class Condition extends ConditionBase {
protected
$query
;
protected
$query
;
/**
/**
*
Implements Drupal\Core\Entity\Query\ConditionInterface::compile().
*
{@inheritdoc}
*/
*/
public
function
compile
(
$conditionContainer
)
{
public
function
compile
(
$conditionContainer
)
{
// If this is not the top level condition group then the sql query is
// If this is not the top level condition group then the sql query is
...
@@ -50,14 +53,14 @@ public function compile($conditionContainer) {
...
@@ -50,14 +53,14 @@ public function compile($conditionContainer) {
}
}
/**
/**
*
Implements Drupal\Core\Entity\Query\ConditionInterface::exists().
*
{@inheritdoc}
*/
*/
public
function
exists
(
$field
,
$langcode
=
NULL
)
{
public
function
exists
(
$field
,
$langcode
=
NULL
)
{
return
$this
->
condition
(
$field
,
NULL
,
'IS NOT NULL'
,
$langcode
);
return
$this
->
condition
(
$field
,
NULL
,
'IS NOT NULL'
,
$langcode
);
}
}
/**
/**
*
Implements Drupal\Core\Entity\Query\ConditionInterface::notExists().
*
{@inheritdoc}
*/
*/
public
function
notExists
(
$field
,
$langcode
=
NULL
)
{
public
function
notExists
(
$field
,
$langcode
=
NULL
)
{
return
$this
->
condition
(
$field
,
NULL
,
'IS NULL'
,
$langcode
);
return
$this
->
condition
(
$field
,
NULL
,
'IS NULL'
,
$langcode
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment