/** * Return the record corresponding to the given ID. * * Both the numeric IDs of ExternalContentSource records and the composite IDs of ExternalContentItem entries * are supported. * * @param string $id The ID * @return Dataobject The relevant object */ public function getRecord($id) { if (is_numeric($id)) { return parent::getRecord($id); } else { return ExternalContent::getDataObjectFor($id); } }