public function DataParserPluginBase::count in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
- 8.2 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
- 8.3 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
- 8.4 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
File
- src/
DataParserPluginBase.php, line 199 - Contains \Drupal\migrate_plus\DataParserPluginBase.
Class
- DataParserPluginBase
- Defines a base data parser implementation.
Namespace
Drupal\migrate_plusCode
public function count() {
$count = 0;
foreach ($this as $item) {
$count++;
}
return $count;
}