You are here

public function EmbeddedDataSource::count in Zircon Profile 8

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

Get the source count.

Return a count of available source records, from the cache if appropriate. Returns -1 if the source is not countable.

Parameters

bool $refresh: Whether or not to refresh the count.

Return value

int The count.

Overrides SourcePluginBase::count

1 call to EmbeddedDataSource::count()
EmbeddedDataSource::fields in core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php
Returns available fields on the source.

File

core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php, line 85
Contains \Drupal\migrate\Plugin\migrate\source\EmbeddedDataSource.

Class

EmbeddedDataSource
Source which takes its data directly from the plugin config.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function count() {
  return count($this->dataRows);
}