function DirectWritePreconditionBypass::getStatusMessage

File

core/modules/package_manager/src/DirectWritePreconditionBypass.php, line 65

Class

DirectWritePreconditionBypass
Allows certain Composer Stager preconditions to be bypassed.

Namespace

Drupal\package_manager

Code

public function getStatusMessage(PathInterface $activeDir, PathInterface $stagingDir, ?PathListInterface $exclusions = NULL, int $timeout = ProcessInterface::DEFAULT_TIMEOUT) : TranslatableInterface {
  if (static::$isBypassed) {
    return new TranslatableStringAdapter('This precondition has been skipped because it is not needed in direct-write mode.');
  }
  return $this->decorated
    ->getStatusMessage($activeDir, $stagingDir, $exclusions, $timeout);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.