public function ViewModeBase::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Plugin/migrate/source/d6/ViewModeBase.php \Drupal\node\Plugin\migrate\source\d6\ViewModeBase::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 SqlBase::count
File
- core/
modules/ node/ src/ Plugin/ migrate/ source/ d6/ ViewModeBase.php, line 20 - Contains \Drupal\node\Plugin\migrate\source\d6\ViewModeBase.
Class
- ViewModeBase
- A base class for migrations that require view mode info.
Namespace
Drupal\node\Plugin\migrate\source\d6Code
public function count() {
return count($this
->initializeIterator());
}