function EmptySource::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/src/Plugin/migrate/source/EmptySource.php, line 66

Class

EmptySource
Source returning a row based on the constants provided.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function doCount() {
  return 1;
}

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