PathConverter
extends Converter
in package
CSS path converter extension
Tags
Table of Contents
- convert() : string
- Convert paths relative to the themes directory.
- normalize() : string
- Normalize path.
Methods
convert()
Convert paths relative to the themes directory.
public
convert(string $path) : string
Takes advantage of the fact that we know the themes directory will be '../themes' relative to the cache directory. This allows path resolution to work regardless of whether there are symlinked directories or other differences between the actual file system path and the path used to access the theme files.
Parameters
- $path : string
-
The relative path that needs to be converted
Return values
string —The new relative path
normalize()
Normalize path.
protected
normalize(string $path) : string
Parameters
- $path : string
-
Path