Commit 03b7423a authored by alexpott's avatar alexpott

Issue #2421849 by amateescu: Make SelectionBase::buildEntityQuery() protected

parent 49cdfedf
......@@ -329,7 +329,7 @@ public function validateAutocompleteInput($input, &$element, FormStateInterface
* The EntityQuery object with the basic conditions and sorting applied to
* it.
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
protected 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);
......
......@@ -27,7 +27,7 @@ class CommentSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
// Adding the 'comment_access' tag is sadly insufficient for comments:
......
......@@ -25,7 +25,7 @@ class FileSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
$query->condition('status', FILE_STATUS_PERMANENT);
return $query;
......
......@@ -25,7 +25,7 @@ class NodeSelection extends SelectionBase {
/**
* {@inheritdoc}
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
protected 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
......
......@@ -130,7 +130,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
/**
* {@inheritdoc}
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
// The user entity doesn't have a label column.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment