function ContentEntity::doCount

Gets the source count.

Checks 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 259

Class

ContentEntity
Source plugin to get content entities from the current version of Drupal.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

protected function doCount() {
  return $this->query()
    ->count()
    ->execute();
}

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