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

Breadcrumb

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

function BasePackage::equals

File

vendor/composer/composer/src/Composer/Package/BasePackage.php, line 178

Class

BasePackage
Base class for packages providing name storage and default match implementation

Namespace

Composer\Package

Code

public function equals(PackageInterface $package) : bool {
    $self = $this;
    if ($this instanceof AliasPackage) {
        $self = $this->getAliasOf();
    }
    if ($package instanceof AliasPackage) {
        $package = $package->getAliasOf();
    }
    return $package === $self;
}

API Navigation

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