You are here

public static function MockData::getMapping in GatherContent 8.5

Same name and namespace in other branches
  1. 8.4 tests/modules/gathercontent_test/src/MockData.php \Drupal\gathercontent_test\MockData::getMapping()

After installing the test configs read the mapping.

File

tests/modules/gathercontent_test/src/MockData.php, line 196

Class

MockData
A class for getting static test data.

Namespace

Drupal\gathercontent_test

Code

public static function getMapping() {
  $mapping_id = \Drupal::entityQuery('gathercontent_mapping')
    ->execute();
  $mapping_id = reset($mapping_id);
  return Mapping::load($mapping_id);
}