public function UploadInstance::count in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/migrate/source/d6/UploadInstance.php \Drupal\file\Plugin\migrate\source\d6\UploadInstance::count()
Get the source count.
Return a count of available source records, from the cache if appropriate. Returns -1 if the source is not countable.
Parameters
bool $refresh: Whether or not to refresh the count.
Return value
int The count.
Overrides DummyQueryTrait::count
File
- core/
modules/ file/ src/ Plugin/ migrate/ source/ d6/ UploadInstance.php, line 84 - Contains \Drupal\file\Plugin\migrate\source\d6\UploadInstance.
Class
- UploadInstance
- Drupal 6 upload instance source from database.
Namespace
Drupal\file\Plugin\migrate\source\d6Code
public function count() {
return count($this
->initializeIterator());
}