Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EmbeddedDataSource.php

function EmbeddedDataSource::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 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) : int {
    // 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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal