Documentation

DrupalInstaller extends BaseInstaller
in package

Table of Contents

$composer  : mixed
$io  : mixed
$locations  : mixed
$package  : mixed
__construct()  : mixed
Initializes base installer.
getInstallPath()  : string
Return the install path based on package type.
getLocations()  : array<string|int, mixed>
Gets the installer's locations
inflectPackageVars()  : array<string|int, mixed>
For an installer to override to modify the vars per installer.
mapCustomInstallPaths()  : string
Search through a passed paths array for a custom install path.
templatePath()  : string
Replace vars in a path

Properties

$locations

protected mixed $locations = array('core' => 'core/', 'module' => 'modules/{$name}/', 'theme' => 'themes/{$name}/', 'library' => 'libraries/{$name}/', 'profile' => 'profiles/{$name}/', 'database-driver' => 'drivers/lib/Drupal/Driver/Database/{$name}/', 'drush' => 'drush/{$name}/', 'custom-theme' => 'themes/custom/{$name}/', 'custom-module' => 'modules/custom/{$name}/', 'custom-profile' => 'profiles/custom/{$name}/', 'drupal-multisite' => 'sites/{$name}/', 'console' => 'console/{$name}/', 'console-language' => 'console/language/{$name}/', 'config' => 'config/sync/')

Methods

getInstallPath()

Return the install path based on package type.

public getInstallPath(PackageInterface $package[, string $frameworkType = '' ]) : string
Parameters
$package : PackageInterface
$frameworkType : string = ''
Return values
string

getLocations()

Gets the installer's locations

public getLocations() : array<string|int, mixed>
Return values
array<string|int, mixed>

inflectPackageVars()

For an installer to override to modify the vars per installer.

public inflectPackageVars(array<string|int, mixed> $vars) : array<string|int, mixed>
Parameters
$vars : array<string|int, mixed>
Return values
array<string|int, mixed>

mapCustomInstallPaths()

Search through a passed paths array for a custom install path.

protected mapCustomInstallPaths(array<string|int, mixed> $paths, string $name, string $type[, string $vendor = NULL ]) : string
Parameters
$paths : array<string|int, mixed>
$name : string
$type : string
$vendor : string = NULL

= NULL

Return values
string

templatePath()

Replace vars in a path

protected templatePath(string $path[, array<string|int, mixed> $vars = array() ]) : string
Parameters
$path : string
$vars : array<string|int, mixed> = array()
Return values
string

Search results