Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
drupal
Merge requests
!4053
Issue
#3347343
: Continuation Add Views EntityReference filter to be available for all entity reference fields
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3347343
: Continuation Add Views EntityReference filter to be available for all entity reference fields
issue/drupal-3347343:3347343-11-x
into
11.x
Overview
27
Commits
76
Pipelines
78
Changes
2
Open
Bram Driesen
requested to merge
issue/drupal-3347343:3347343-11-x
into
11.x
1 year ago
Overview
5
Commits
76
Pipelines
78
Changes
2
Expand
0
0
Merge request reports
Compare
11.x
version 86
c26d021f
4 months ago
version 85
468606a0
4 months ago
version 84
8aab53f9
4 months ago
version 83
63b431ec
8 months ago
version 82
2e8ab164
8 months ago
version 81
6c2cc9c0
8 months ago
version 80
f14168d2
8 months ago
version 79
a0fc7c49
9 months ago
version 78
cb659966
9 months ago
version 77
91efd196
9 months ago
version 76
efa635a7
9 months ago
version 75
f5fe567f
9 months ago
version 74
a73b8c92
9 months ago
version 73
cb659966
9 months ago
version 72
18cff721
9 months ago
version 71
d0b9d4a6
9 months ago
version 70
c55761e4
9 months ago
version 69
0256d5dc
9 months ago
version 68
50bbe363
10 months ago
version 67
bbecefce
10 months ago
version 66
a2e67b56
11 months ago
version 65
df00eea2
11 months ago
version 64
90dd4ebd
1 year ago
version 63
dfebce9c
1 year ago
version 62
ae6eca73
1 year ago
version 61
58800870
1 year ago
version 60
93c14028
1 year ago
version 59
6b70d9cf
1 year ago
version 58
5240433f
1 year ago
version 57
e2e7e6f9
1 year ago
version 56
7395a860
1 year ago
version 55
ca4774e2
1 year ago
version 54
605d399f
1 year ago
version 53
6e15eb63
1 year ago
version 52
e9091630
1 year ago
version 51
b2d78d1c
1 year ago
version 50
89f9ddf0
1 year ago
version 49
ef580c8e
1 year ago
version 48
5e813469
1 year ago
version 47
ac645666
1 year ago
version 46
302d9c2a
1 year ago
version 45
bba7b764
1 year ago
version 44
d9ef7806
1 year ago
version 43
afb88bb2
1 year ago
version 42
37f5a9f5
1 year ago
version 41
64b89ead
1 year ago
version 40
5446efe3
1 year ago
version 39
e20d506a
1 year ago
version 38
b6aa6e4e
1 year ago
version 37
e7faff9c
1 year ago
version 36
220ea3b8
1 year ago
version 35
068e2387
1 year ago
version 34
ae32f1d5
1 year ago
version 33
64f94fac
1 year ago
version 32
9836df97
1 year ago
version 31
c1f1fc15
1 year ago
version 30
ccb72b2e
1 year ago
version 29
c47e4181
1 year ago
version 28
82985d33
1 year ago
version 27
8a183034
1 year ago
version 26
b70b0ee1
1 year ago
version 25
c697cf7b
1 year ago
version 24
4f5940d5
1 year ago
version 23
416637d9
1 year ago
version 22
64ed87d3
1 year ago
version 21
b169f1bb
1 year ago
version 20
f167cc8a
1 year ago
version 19
f56526d0
1 year ago
version 18
617519af
1 year ago
version 17
b59edb6a
1 year ago
version 16
6de4aeba
1 year ago
version 15
2e7f5f94
1 year ago
version 14
abadbd5c
1 year ago
version 13
92d5e698
1 year ago
version 12
208deaa4
1 year ago
version 11
b548c183
1 year ago
version 10
1bc7bda7
1 year ago
version 9
18c868cb
1 year ago
version 8
9da70d1c
1 year ago
version 7
24d044d3
1 year ago
version 6
01139596
1 year ago
version 5
c2d22d0c
1 year ago
version 4
98866436
1 year ago
version 3
d9029847
1 year ago
version 2
4db59bde
1 year ago
version 1
3e06ef29
1 year ago
11.x (HEAD)
and
latest version
latest version
96b573d1
76 commits,
4 months ago
version 86
c26d021f
75 commits,
4 months ago
version 85
468606a0
74 commits,
4 months ago
version 84
8aab53f9
73 commits,
4 months ago
version 83
63b431ec
72 commits,
8 months ago
version 82
2e8ab164
71 commits,
8 months ago
version 81
6c2cc9c0
70 commits,
8 months ago
version 80
f14168d2
69 commits,
8 months ago
version 79
a0fc7c49
62 commits,
9 months ago
version 78
cb659966
61 commits,
9 months ago
version 77
91efd196
65 commits,
9 months ago
version 76
efa635a7
64 commits,
9 months ago
version 75
f5fe567f
63 commits,
9 months ago
version 74
a73b8c92
62 commits,
9 months ago
version 73
cb659966
61 commits,
9 months ago
version 72
18cff721
60 commits,
9 months ago
version 71
d0b9d4a6
59 commits,
9 months ago
version 70
c55761e4
60 commits,
9 months ago
version 69
0256d5dc
59 commits,
9 months ago
version 68
50bbe363
58 commits,
10 months ago
version 67
bbecefce
57 commits,
10 months ago
version 66
a2e67b56
56 commits,
11 months ago
version 65
df00eea2
55 commits,
11 months ago
version 64
90dd4ebd
54 commits,
1 year ago
version 63
dfebce9c
53 commits,
1 year ago
version 62
ae6eca73
52 commits,
1 year ago
version 61
58800870
50 commits,
1 year ago
version 60
93c14028
48 commits,
1 year ago
version 59
6b70d9cf
47 commits,
1 year ago
version 58
5240433f
46 commits,
1 year ago
version 57
e2e7e6f9
45 commits,
1 year ago
version 56
7395a860
44 commits,
1 year ago
version 55
ca4774e2
43 commits,
1 year ago
version 54
605d399f
42 commits,
1 year ago
version 53
6e15eb63
41 commits,
1 year ago
version 52
e9091630
40 commits,
1 year ago
version 51
b2d78d1c
39 commits,
1 year ago
version 50
89f9ddf0
38 commits,
1 year ago
version 49
ef580c8e
37 commits,
1 year ago
version 48
5e813469
36 commits,
1 year ago
version 47
ac645666
35 commits,
1 year ago
version 46
302d9c2a
34 commits,
1 year ago
version 45
bba7b764
33 commits,
1 year ago
version 44
d9ef7806
32 commits,
1 year ago
version 43
afb88bb2
31 commits,
1 year ago
version 42
37f5a9f5
30 commits,
1 year ago
version 41
64b89ead
29 commits,
1 year ago
version 40
5446efe3
28 commits,
1 year ago
version 39
e20d506a
27 commits,
1 year ago
version 38
b6aa6e4e
26 commits,
1 year ago
version 37
e7faff9c
25 commits,
1 year ago
version 36
220ea3b8
24 commits,
1 year ago
version 35
068e2387
23 commits,
1 year ago
version 34
ae32f1d5
24 commits,
1 year ago
version 33
64f94fac
22 commits,
1 year ago
version 32
9836df97
21 commits,
1 year ago
version 31
c1f1fc15
20 commits,
1 year ago
version 30
ccb72b2e
19 commits,
1 year ago
version 29
c47e4181
18 commits,
1 year ago
version 28
82985d33
17 commits,
1 year ago
version 27
8a183034
16 commits,
1 year ago
version 26
b70b0ee1
15 commits,
1 year ago
version 25
c697cf7b
14 commits,
1 year ago
version 24
4f5940d5
13 commits,
1 year ago
version 23
416637d9
12 commits,
1 year ago
version 22
64ed87d3
12 commits,
1 year ago
version 21
b169f1bb
11 commits,
1 year ago
version 20
f167cc8a
10 commits,
1 year ago
version 19
f56526d0
10 commits,
1 year ago
version 18
617519af
10 commits,
1 year ago
version 17
b59edb6a
10 commits,
1 year ago
version 16
6de4aeba
9 commits,
1 year ago
version 15
2e7f5f94
9 commits,
1 year ago
version 14
abadbd5c
9 commits,
1 year ago
version 13
92d5e698
8 commits,
1 year ago
version 12
208deaa4
7 commits,
1 year ago
version 11
b548c183
7 commits,
1 year ago
version 10
1bc7bda7
7 commits,
1 year ago
version 9
18c868cb
6 commits,
1 year ago
version 8
9da70d1c
4 commits,
1 year ago
version 7
24d044d3
3 commits,
1 year ago
version 6
01139596
3 commits,
1 year ago
version 5
c2d22d0c
3 commits,
1 year ago
version 4
98866436
2 commits,
1 year ago
version 3
d9029847
2 commits,
1 year ago
version 2
4db59bde
1 commit,
1 year ago
version 1
3e06ef29
1 commit,
1 year ago
2 files
+
31
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/modules/views/tests/modules/views_test_entity_reference/views_test_entity_reference.module
0 → 100644
+
30
−
0
Options
<?php
/**
* @file
* Views data altering to test use of the entity reference plugin.
*/
declare
(
strict_types
=
1
);
/**
* Implements hook_views_data_alter().
*/
function
views_test_entity_reference_views_data_alter
(
&
$data
)
:
void
{
$manager
=
\Drupal
::
entityTypeManager
();
$field_config_storage
=
$manager
->
getStorage
(
'field_config'
);
/** @var \Drupal\field\FieldConfigInterface[] $field_configs */
$field_configs
=
$field_config_storage
->
loadByProperties
([
'field_type'
=>
'entity_reference'
,
]);
foreach
(
$field_configs
as
$field_config
)
{
$table_name
=
$field_config
->
getTargetEntityTypeId
()
.
'__'
.
$field_config
->
getName
();
$column_name
=
$field_config
->
getName
()
.
'_target_id'
;
if
(
isset
(
$data
[
$table_name
][
$column_name
][
'filter'
][
'id'
])
&&
in_array
(
$data
[
$table_name
][
$column_name
][
'filter'
][
'id'
],
[
'numeric'
,
'string'
])
)
{
$data
[
$table_name
][
$column_name
][
'filter'
][
'id'
]
=
'entity_reference'
;
}
}
}
Loading