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

Breadcrumb

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

function BaseInstaller::pregReplace

43 calls to BaseInstaller::pregReplace()
AkauntingInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php
Format package name to CamelCase
AsgardInstaller::inflectPluginVars in vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
AsgardInstaller::inflectThemeVars in vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
CakePHPInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
Format package name to CamelCase
CockpitInstaller::inflectModuleVars in vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php

... See full list

File

vendor/composer/installers/src/Composer/Installers/BaseInstaller.php, line 128

Class

BaseInstaller

Namespace

Composer\Installers

Code

protected function pregReplace(string $pattern, string $replacement, string $subject) : string {
    $result = preg_replace($pattern, $replacement, $subject);
    if (null === $result) {
        throw new \RuntimeException('Failed to run preg_replace with ' . $pattern . ': ' . preg_last_error());
    }
    return $result;
}

API Navigation

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