function EntityTranslationSettings::doCount
Same name in other branches
- 10 core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::doCount()
- 11.x core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::doCount()
Overrides SqlBase::doCount
File
-
core/
modules/ content_translation/ src/ Plugin/ migrate/ source/ d7/ EntityTranslationSettings.php, line 196
Class
- EntityTranslationSettings
- Drupal 7 Entity Translation settings (variables) from database.
Namespace
Drupal\content_translation\Plugin\migrate\source\d7Code
protected function doCount() {
// Since the number of variables we fetch with query() does not match the
// actual number of rows generated by initializeIterator(), we need to
// override count() to return the correct count.
return (int) $this->initializeIterator()
->count();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.