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

Breadcrumb

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

function Comparer::getChanged

Return value

array{changed?: string[], removed?: string[], added?: string[]}|false false if no change

1 call to Comparer::getChanged()
Comparer::getChangedAsString in vendor/composer/composer/src/Composer/Package/Comparer/Comparer.php

File

vendor/composer/composer/src/Composer/Package/Comparer/Comparer.php, line 44

Class

Comparer
class Comparer

Namespace

Composer\Package\Comparer

Code

public function getChanged(bool $explicated = false) {
    $changed = $this->changed;
    if (!count($changed)) {
        return false;
    }
    if ($explicated) {
        foreach ($changed as $sectionKey => $itemSection) {
            foreach ($itemSection as $itemKey => $item) {
                $changed[$sectionKey][$itemKey] = $item . ' (' . $sectionKey . ')';
            }
        }
    }
    return $changed;
}
RSS feed
Powered by Drupal