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

Breadcrumb

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

function MultiConflictRule::equals

Checks if this rule is equal to another one

Ignores whether either of the rules is disabled.

Parameters

Rule $rule The rule to check against:

Return value

bool Whether the rules are equal

Overrides Rule::equals

File

vendor/composer/composer/src/Composer/DependencyResolver/MultiConflictRule.php, line 71

Class

MultiConflictRule
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\DependencyResolver

Code

public function equals(Rule $rule) : bool {
    if ($rule instanceof MultiConflictRule) {
        return $this->literals === $rule->getLiterals();
    }
    return false;
}

API Navigation

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