Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ManageOptions.php

function ManageOptions::getLocationReplacements

Creates an interpolator for the 'locations' element.

The interpolator returned will replace a path string with the tokens defined in the 'locations' element.

Note that only the root package may define locations.

Return value

\Drupal\Composer\Plugin\Scaffold\Interpolator Interpolator that will do replacements in a string using tokens in 'locations' element.

File

composer/Plugin/Scaffold/ManageOptions.php, line 72

Class

ManageOptions
Per-project options from the 'extras' section of the composer.json file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function getLocationReplacements() {
    return (new Interpolator())->setData($this->ensureLocations());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal