You are here

public function DataParserPluginBase::count in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
  2. 8 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
  3. 8.2 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::count()
  4. 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_plus

Code

public function count() {
  $count = 0;
  foreach ($this as $item) {
    $count++;
  }
  return $count;
}