You are here

protected function Vendor::doCheck in Automatic Updates 8

Perform checks.

Return value

array An array of translatable strings if any checks fail.

Overrides Filesystem::doCheck

File

src/ReadinessChecker/Vendor.php, line 13

Class

Vendor
Error if site is managed via composer instead of via tarballs.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

protected function doCheck() {
  if (!file_exists($this
    ->getVendorPath() . DIRECTORY_SEPARATOR . 'autoload.php')) {
    return [
      $this
        ->t('The vendor folder could not be located.'),
    ];
  }
  return [];
}