function ResourceTypeRepositoryTest::getFieldMappingProvider
Data provider for testGetFieldMapping.
These field name lists are designed to trigger a naming conflict in the mapping: the special-cased names "type" or "id", and the name "{$entity_type_id}_type" or "{$entity_type_id}_id", respectively.
@returns array The data for the test method.
File
-
core/
modules/ jsonapi/ tests/ src/ Kernel/ ResourceType/ ResourceTypeRepositoryTest.php, line 145
Class
- ResourceTypeRepositoryTest
- @coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\ResourceTypeCode
public function getFieldMappingProvider() {
return [
[
[
'type',
'node_type',
],
],
[
[
'id',
'node_id',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.