BackendPathEvaluator
class BackendPathEvaluator (View source)
Methods
Evaluate will check to see if the provided host path contains a path alias. If it does, the alias will be resolved, and the result of the resolution will be injected into the HostPath, replacing the alias.
Resolve will check to see if the provided host path contains a path alias. If it does, the alias will be resolved, and the result of the resolution will be returned.
Lookup will use the provided alias record to look up and return the value of a path alias.
Request the value of the path alias from the site associated with the alias record.
Details
evaluate(HostPath $path)
Evaluate will check to see if the provided host path contains a path alias. If it does, the alias will be resolved, and the result of the resolution will be injected into the HostPath, replacing the alias.
string
resolve(HostPath $path)
Resolve will check to see if the provided host path contains a path alias. If it does, the alias will be resolved, and the result of the resolution will be returned.
string
lookup(SiteAlias $aliasRecord, $pathAlias)
Lookup will use the provided alias record to look up and return the value of a path alias.
string
request(SiteAlias $aliasRecord, string $pathAlias)
Request the value of the path alias from the site associated with the alias record.