# code-snippets/3.10.1/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php

Code Snippets, version 3.10.1. 26 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/3.10.1/code/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
- Raw: https://pluginprobe.com/plugins/code-snippets/3.10.1/raw/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
- Modified: 2025-02-14T05:52:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-snippets/3.10.1/code/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php#L10-L20`.

```php
<?php

namespace Composer\Installers;

class DrupalInstaller extends BaseInstaller
{
    /** @var array<string, string> */
    protected $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/',
        'recipe'           => 'recipes/{$name}',
    );
}

```
