Method | Description | |
---|---|---|
__construct ( $siteUrl ) | ||
replace ( array $entity ) : array | Replaces absolute URLs with placeholder | |
restore ( array $entity ) : array | Replaces the placeholder with absolute URL |
Method | Description | |
---|---|---|
replaceLocalUrls ( $value ) | ||
replacePlaceholders ( $value ) | ||
replaceRecursively ( mixed $value, callable $replaceFn ) : string |