You are here

public function FieldDiscoveryTestClass::getCoreVersion in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getCoreVersion()

Finds the core version of a Drupal migration.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

Return value

string|bool A string representation of the Drupal version, or FALSE.

Throws

\InvalidArgumentException

Overrides FieldDiscovery::getCoreVersion

File

core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php, line 75

Class

FieldDiscoveryTestClass
A test class to expose protected methods.

Namespace

Drupal\field_discovery_test

Code

public function getCoreVersion(MigrationInterface $migration) {
  return parent::getCoreVersion($migration);
}