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

Breadcrumb

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

function InstalledArrayRepository::isFresh

@inheritDoc

Overrides InstalledRepositoryInterface::isFresh

File

vendor/composer/composer/src/Composer/Repository/InstalledArrayRepository.php, line 32

Class

InstalledArrayRepository
Installed array repository.

Namespace

Composer\Repository

Code

public function isFresh() : bool {
    // this is not a completely correct implementation but there is no way to
    // distinguish an empty repo and a newly created one given this is all in-memory
    return $this->count() === 0;
}
RSS feed
Powered by Drupal