protected function ContentEntity::doCount in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\ContentEntity::doCount()
Gets the source count checking if the source is countable or using the iterator_count function.
Return value
int
Overrides SourcePluginBase::doCount
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ ContentEntity.php, line 250
Class
- ContentEntity
- Source plugin to get content entities from the current version of Drupal.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
protected function doCount() {
return $this
->query()
->count()
->execute();
}