You are here

public function DataParserPluginBase::count in Migrate Plus 8

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

Code

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