interface SiteAliasManagerInterface (View source)

Site Alias manager

Methods

string[]
searchLocations()

Return all of the paths where alias files may be found.

SiteAlias|false
get(string $name)

Get an alias record by name, or convert a site specification into an alias record via the site alias spec parser. If a simple alias name is provided (e.g. '@alias'), it is interpreted as a sitename, and the default environment for that site is returned.

getSelf()

Get the '@self' alias record.

getAlias(string $aliasName)

Get an alias record from a name. Does not accept site specifications.

SiteAlias[]|false
getMultiple(string $name = '')

Given a simple alias name, e.g. '@alias', returns all of the environments in the specified site.

string[]
listAllFilePaths($location = '')

Return the paths to all alias files in all search locations known to the alias manager.

Details

string[] searchLocations()

Return all of the paths where alias files may be found.

Return Value

string[]

SiteAlias|false get(string $name)

Get an alias record by name, or convert a site specification into an alias record via the site alias spec parser. If a simple alias name is provided (e.g. '@alias'), it is interpreted as a sitename, and the default environment for that site is returned.

Parameters

string $name

Alias name or site specification

Return Value

SiteAlias|false

SiteAlias getSelf()

Get the '@self' alias record.

Return Value

SiteAlias

SiteAlias getAlias(string $aliasName)

Get an alias record from a name. Does not accept site specifications.

Parameters

string $aliasName

alias name

Return Value

SiteAlias

SiteAlias[]|false getMultiple(string $name = '')

Given a simple alias name, e.g. '@alias', returns all of the environments in the specified site.

If the provided name is a site specification et. al., then this method will return 'false'.

Parameters

string $name

Alias name

Return Value

SiteAlias[]|false

string[] listAllFilePaths($location = '')

Return the paths to all alias files in all search locations known to the alias manager.

Parameters

$location

Return Value

string[]