Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
CrmUserContact | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
ensureTable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
addField | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Drupal\crm\Plugin\views\query; |
4 | |
5 | use Drupal\views\Plugin\views\query\QueryPluginBase; |
6 | |
7 | /** |
8 | * The. |
9 | * |
10 | * @ViewsQuery( |
11 | * id = "crm_user_contact", |
12 | * title = @Translation("User Contact"), |
13 | * help = @Translation("Relationship between the user and person.") |
14 | * ) |
15 | */ |
16 | class CrmUserContact extends QueryPluginBase { |
17 | |
18 | /** |
19 | * {@inheritdoc} |
20 | */ |
21 | public function ensureTable($table, $relationship = NULL) { |
22 | return ''; |
23 | } |
24 | |
25 | /** |
26 | * {@inheritdoc} |
27 | */ |
28 | public function addField($table, $field, $alias = '', $params = []) { |
29 | return $field; |
30 | } |
31 | |
32 | } |