You are here

public function FieldDiscoveryTestClass::getAllFields 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::getAllFields()

Gets all field information related to this migration.

Parameters

string $core: The Drupal core version to get fields for.

Return value

array A multidimensional array of source data from the relevant field instance migration, keyed first by entity type, then by bundle and finally by field name.

Overrides FieldDiscovery::getAllFields

File

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

Class

FieldDiscoveryTestClass
A test class to expose protected methods.

Namespace

Drupal\field_discovery_test

Code

public function getAllFields($core) {
  if (!empty($this->testData['getAllFields'][$core])) {
    return $this->testData['getAllFields'][$core];
  }
  return parent::getAllFields($core);
}