function EmbeddedDataSource::count

Same name and namespace in other branches
  1. 11.x core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php \Drupal\migrate\Plugin\migrate\source\EmbeddedDataSource::count()

Attributes

#[\ReturnTypeWillChange]

File

core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php, line 116

Class

EmbeddedDataSource
Allows source data to be defined in the configuration of the source plugin.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function count($refresh = FALSE) {
  // We do not want this source plugin to have a cacheable count.
  // @see \Drupal\migrate_cache_counts_test\Plugin\migrate\source\CacheableEmbeddedDataSource
  return count($this->dataRows);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.