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

Breadcrumb

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

function InstallationManager::markAliasInstalled

Executes markAliasInstalled operation.

Parameters

InstalledRepositoryInterface $repo repository in which to check:

MarkAliasInstalledOperation $operation operation instance:

File

vendor/composer/composer/src/Composer/Installer/InstallationManager.php, line 533

Class

InstallationManager
Package operation manager.

Namespace

Composer\Installer

Code

public function markAliasInstalled(InstalledRepositoryInterface $repo, MarkAliasInstalledOperation $operation) : void {
    $package = $operation->getPackage();
    if (!$repo->hasPackage($package)) {
        $repo->addPackage(clone $package);
    }
}

API Navigation

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