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

Improve count() for ContentEntity source plugin

$
0
0

Problem/Motivation

Retrieving counts of source data when the source data can include translations is troublesome. It isn't possible to just call `$this->query()->count()->execute();` That won't return anything but the main translation count.

Proposed resolution

Add logic to the count method so that when translations are enabled (include_translations: true) the count returned is the number of items in the iterator.

Remaining tasks

Review
Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A


Viewing all articles
Browse latest Browse all 293850

Trending Articles



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