You are here

public function QueryPluginBase::loadEntities in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::loadEntities()

Loads all entities contained in the passed-in $results.

If the entity belongs to the base table, then it gets stored in $result->_entity. Otherwise, it gets stored in $result->_relationship_entities[$relationship_id];

Query plugins that don't support entities can leave the method empty.

1 method overrides QueryPluginBase::loadEntities()
Sql::loadEntities in core/modules/views/src/Plugin/views/query/Sql.php
Loads all entities contained in the passed-in $results.

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 202

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function loadEntities(&$results) {
}