Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
301
Merge Requests
301
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
03b7423a
Commit
03b7423a
authored
Feb 07, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2421849
by amateescu: Make SelectionBase::buildEntityQuery() protected
parent
49cdfedf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php
.../Entity/Plugin/EntityReferenceSelection/SelectionBase.php
+1
-1
core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php
.../src/Plugin/EntityReferenceSelection/CommentSelection.php
+1
-1
core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php
...ile/src/Plugin/EntityReferenceSelection/FileSelection.php
+1
-1
core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php
...ode/src/Plugin/EntityReferenceSelection/NodeSelection.php
+1
-1
core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php
...ser/src/Plugin/EntityReferenceSelection/UserSelection.php
+1
-1
No files found.
core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php
View file @
03b7423a
...
...
@@ -329,7 +329,7 @@ public function validateAutocompleteInput($input, &$element, FormStateInterface
* The EntityQuery object with the basic conditions and sorting applied to
* it.
*/
p
ublic
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
p
rotected
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
$target_type
=
$this
->
configuration
[
'target_type'
];
$handler_settings
=
$this
->
configuration
[
'handler_settings'
];
$entity_type
=
$this
->
entityManager
->
getDefinition
(
$target_type
);
...
...
core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php
View file @
03b7423a
...
...
@@ -27,7 +27,7 @@ class CommentSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
p
ublic
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
p
rotected
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
$query
=
parent
::
buildEntityQuery
(
$match
,
$match_operator
);
// Adding the 'comment_access' tag is sadly insufficient for comments:
...
...
core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php
View file @
03b7423a
...
...
@@ -25,7 +25,7 @@ class FileSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
p
ublic
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
p
rotected
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
$query
=
parent
::
buildEntityQuery
(
$match
,
$match_operator
);
$query
->
condition
(
'status'
,
FILE_STATUS_PERMANENT
);
return
$query
;
...
...
core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php
View file @
03b7423a
...
...
@@ -25,7 +25,7 @@ class NodeSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
p
ublic
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
p
rotected
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
$query
=
parent
::
buildEntityQuery
(
$match
,
$match_operator
);
// Adding the 'node_access' tag is sadly insufficient for nodes: core
// requires us to also know about the concept of 'published' and
...
...
core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php
View file @
03b7423a
...
...
@@ -130,7 +130,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
/**
* {@inheritdoc}
*/
p
ublic
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
p
rotected
function
buildEntityQuery
(
$match
=
NULL
,
$match_operator
=
'CONTAINS'
)
{
$query
=
parent
::
buildEntityQuery
(
$match
,
$match_operator
);
// The user entity doesn't have a label column.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment