You are here

public function FieldDiscoveryTestClass::getEntityFields in Drupal 10

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

Gets all field information for a particular entity type.

Parameters

string $core: The Drupal core version.

string $entity_type_id: The legacy entity type ID.

Return value

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

Overrides FieldDiscovery::getEntityFields

File

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

Class

FieldDiscoveryTestClass
A test class to expose protected methods.

Namespace

Drupal\field_discovery_test

Code

public function getEntityFields($core, $entity_type_id) {
  return parent::getEntityFields($core, $entity_type_id);
}