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