Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291122

Add additional option in to view to exclude load_entities function while execute

$
0
0

In View settings create advanced option to disable entities load. If this option active, in /core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php ignore next line:
$this->load_entities($view->result);
For example: I added fields: nid, title and created, that's all that I need in my view. If I need to display 200 node title with created dates, standart views load this 200 nodes and call load method after this. But I know that no one module do not modify my titles and dates, I need only plain results after primary db query.


Viewing all articles
Browse latest Browse all 291122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>