You are here

public function DummyQueryTrait::count in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php \Drupal\migrate\Plugin\migrate\source\DummyQueryTrait::count()
2 methods override DummyQueryTrait::count()
CommentVariable::count in core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php
Get the source count.
UploadInstance::count in core/modules/file/src/Plugin/migrate/source/d6/UploadInstance.php
Get the source count.

File

core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php, line 32
Contains \Drupal\migrate\Plugin\migrate\source\DummyQueryTrait.

Class

DummyQueryTrait
Trait providing a dummy select query object for source plugins based on SqlBase which override initializeIterator() to obtain their data from other SqlBase services instead of a direct query. This ensures that query() returns a valid object, even…

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function count() {
  return 1;
}