You are here

public function MediaUnsplashHandler::getFileObject in Media Unsplash 7

Create file.

Return value

bool|object Return file object.

File

includes/MediaUnsplashHandler.inc, line 67
Definition of MediaUnsplashHandler.

Class

MediaUnsplashHandler
A class for managing the addition of Internet files.

Code

public function getFileObject() {
  if (!$this->fileObject) {
    $this->fileObject = file_uri_to_object($this->embedCode);
  }
  return $this->fileObject;
}