interface SiteAliasManagerInitializationInterface (View source)

Site Alias manager methods used to set up the object.

Methods

setReferenceData($data)

Allow configuration data to be used in replacements in the alias file.

$this
setRoot(string $root)

Inject the root of the selected site

$this
addSearchLocation(string $path)

Add a search location to our site alias discovery object.

$this
addSearchLocations(array $paths)

Add search locations to our site alias discovery object.

$this
setSelf(SiteAlias $selfSiteAlias)

Force-set the current @self alias.

Details

setReferenceData($data)

Allow configuration data to be used in replacements in the alias file.

Parameters

$data

$this setRoot(string $root)

Inject the root of the selected site

Parameters

string $root

Return Value

$this

$this addSearchLocation(string $path)

Add a search location to our site alias discovery object.

Parameters

string $path

Return Value

$this

$this addSearchLocations(array $paths)

Add search locations to our site alias discovery object.

Parameters

array $paths

Any path provided in --alias-path option or drush.path.alias-path configuration item.

Return Value

$this

$this setSelf(SiteAlias $selfSiteAlias)

Force-set the current @self alias.

Parameters

SiteAlias $selfSiteAlias

Return Value

$this