get_record_by_id — Get a record by its ID.¶
- get_record_by_id($modelName, $recordId)¶
Get a record by its ID.
- $modelName (string) – Name of the Record model being looked up (e.g., ‘Item’)
- $recordId (int) – The ID of the specific record to find.
Omeka_Record_AbstractRecord|null The record, or null if it cannot be found.