You are here

protected function EntityShareMediasFileImport::fieldManagement in Entity Share 7

Manage field media reference content.

Overrides EntityShareMediasProviderAbstract::fieldManagement

1 call to EntityShareMediasFileImport::fieldManagement()
EntityShareMediasFileImport::importMedias in modules/entity_share_medias/modules/entity_share_medias_file/includes/entity_share_medias_file.import.inc
Import the medias of the provider.

File

modules/entity_share_medias/modules/entity_share_medias_file/includes/entity_share_medias_file.import.inc, line 35
Class for handling scald Medias in RTE.

Class

EntityShareMediasFileImport
Class for file import.

Code

protected function fieldManagement() {
  $file = (object) $this->fieldData;
  $uuid = $this
    ->getUuid($file);
  $fid = $this
    ->importFile($file, $uuid, $file->file_url);
  $this->fieldData['fid'] = $fid;
}