You are here

function Resource::refresh in D7 Media 6

File

resource/resource.module, line 314
Resource API for Drupal, a replacement for files.

Class

Resource
Base Resource class.

Code

function refresh() {
  $this->htmlUrl = $this->streamWrapper
    ->htmlUrl($this->url);
  $this->size = $this->streamWrapper
    ->size($this->url);
  $this->mime = $this->streamWrapper
    ->mime($this->url);
  return $this;
}