- Issue created by @joachim
- 🇫🇷France guilhxm Paris
The documentation for ImportServiceInterface::importEntityListData() should clarify that it supports both :
- A collection of entities from a listing endpoint.
- A single entity from an individual resource endpoint.
To improve clarity, I propose updating the PHPDoc like this :
/** * Imports entity data from a JSON:API endpoint. * * This method can handle both: * - A collection of entities from a listing endpoint. * - A single entity from an individual resource endpoint. * * @param array $entity_list_data * An array containing JSON:API data. This can be either: * - A collection of entities (data from a listing endpoint). * - A single entity (data from an individual entity endpoint). */
This update explicitly mentions that both types of JSON:API data structures are supported, making it clearer.
- Merge request !1043505800 - Add documentation details to function importEntityListData() → (Open) created by Unnamed author