protected function MigrateListJSON::getIDsFromJSON in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/json.inc \MigrateListJSON::getIDsFromJSON()
Given an array generated from JSON, parse out the IDs for processing and return them as an array. The default implementation assumes the IDs are simply the values of the top-level elements - in most cases, you will need to override this to reflect your particular JSON structure.
Parameters
array $data:
Return value
array
1 call to MigrateListJSON::getIDsFromJSON()
- MigrateListJSON::getIdList in plugins/
sources/ json.inc - Load the JSON at the given URL, and return an array of the IDs found within it.
File
- plugins/
sources/ json.inc, line 73 - Support for migration from JSON sources.
Class
- MigrateListJSON
- Implementation of MigrateList, for retrieving a list of IDs to be migrated from a JSON object.
Code
protected function getIDsFromJSON(array $data) {
return $data;
}