function ViewsSelection::getReferenceableEntities

Same name in other branches
  1. 9 core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::getReferenceableEntities()
  2. 8.9.x core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::getReferenceableEntities()
  3. 10 core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::getReferenceableEntities()

Overrides SelectionInterface::getReferenceableEntities

1 call to ViewsSelection::getReferenceableEntities()
ViewsSelection::countReferenceableEntities in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php

File

core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php, line 232

Class

ViewsSelection
Plugin implementation of the 'selection' entity_reference.

Namespace

Drupal\views\Plugin\EntityReferenceSelection

Code

public function getReferenceableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
    $entities = [];
    if ($display_execution_results = $this->getDisplayExecutionResults($match, $match_operator, $limit)) {
        $entities = $this->stripAdminAndAnchorTagsFromResults($display_execution_results);
    }
    return $entities;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.