docs for ImportServiceInterface::importEntityListData() need more detail

Created on 11 February 2025, 8 months ago

Problem/Motivation

The docs for ImportServiceInterface::importEntityListData() say:

   * @param array $entity_list_data
   *   An array of data from a JSON:API endpoint.

This could do to be clearer. The name of the method makes you think that it's only for data from a listing endpoint, but in fact, in the implementation, the call to EntityShareUtility::prepareData() is for ensuring that if $data is the data from a single entity endpoint, it works too.

Steps to reproduce

Proposed resolution

Document that the data can be from either a listing or a single entity endpoint (using the proper JSONAPI terms for these two things, which I can't remember :) )

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Documentation

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024