You are here

public function EntityLoadHelperTest::getEntityFields in YAML Content 8

Load fixture data for mapped entity fields.

Parameters

$entity_type: The identifier for the entity type field list being loaded.

Return value

array An array of fields for the specified entity type.

File

tests/src/Unit/EntityLoadHelper/EntityLoadHelperTest.php, line 583

Class

EntityLoadHelperTest
Test functionality of the EntityLoadHelper class.

Namespace

Drupal\Tests\yaml_content\Unit\EntityLoadHelper

Code

public function getEntityFields($entity_type) {
  $field_map = $this
    ->loadFixtureContent('field_list', [
    $entity_type,
  ]);
  return $field_map;
}