protected function EntityShareMediasScaldImport::fieldManagement in Entity Share 7
Manage field media reference content.
Overrides EntityShareMediasProviderAbstract::fieldManagement
1 call to EntityShareMediasScaldImport::fieldManagement()
- EntityShareMediasScaldImport::importMedias in modules/
entity_share_medias/ modules/ entity_share_medias_scald/ includes/ entity_share_medias_scald.import.inc - Import the medias of the provider.
File
- modules/
entity_share_medias/ modules/ entity_share_medias_scald/ includes/ entity_share_medias_scald.import.inc, line 42 - Class for handling scald Medias in RTE.
Class
- EntityShareMediasScaldImport
- Class to manage scald atoms import.
Code
protected function fieldManagement() {
// Case of invalid scald atoms that can't be
// loaded in the remote system.
if (empty($this->fieldData) || empty($this->fieldData['sid'])) {
return;
}
$scald_atom = (object) $this->fieldData;
$uuid = $this
->getUniqueIdFromAtom($scald_atom);
$sid = $this
->importScaldAtom($scald_atom, $uuid, $scald_atom->file_url);
$this->fieldData = NULL;
$this->fieldData['sid'] = $sid;
}