🇫🇷France @guilhxm

Paris
Account created on 7 February 2025, about 2 months ago
#

Recent comments

🇫🇷France guilhxm Paris

guilhxm → changed the visibility of the branch entity_share-3505800/3505800-add-documentation to active.

🇫🇷France guilhxm Paris

guilhxm → changed the visibility of the branch entity_share-3505800/3505800-add-documentation to hidden.

🇫🇷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.

Production build 0.71.5 2024