Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | */ |
||
33 | View Code Duplication | class EntityReferenceReverse extends EntityQuery { |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function getBaseQuery($value, array $args, ResolveInfo $info) { |
||
39 | if ($value instanceof EntityInterface) { |
||
40 | $query = parent::getBaseQuery($value, $args, $info); |
||
41 | |||
42 | // Add the target field condition to the query. |
||
43 | $definition = $this->getPluginDefinition(); |
||
44 | $field = $definition['field']; |
||
52 |