You are here

function WordpressMigrateStreamWrapper::getExternalUrl in WordPress Migrate 7

Same name and namespace in other branches
  1. 7.2 wordpress_wrapper.inc \WordpressMigrateStreamWrapper::getExternalUrl()

Overrides getExternalUrl().

Return the HTML URI of a private file.

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

./wordpress_wrapper.inc, line 24

Class

WordpressMigrateStreamWrapper
Wordpress Migrate (wordpress://) stream wrapper class.

Code

function getExternalUrl() {
  $path = str_replace('\\', '/', $this
    ->getTarget());
  return url('system/files/' . $path, array(
    'absolute' => TRUE,
  ));
}