You are here

public function Filesystem::run in Automatic Updates 8

Run check.

Return value

array An array of translatable strings.

Overrides ReadinessCheckerInterface::run

File

src/ReadinessChecker/Filesystem.php, line 40

Class

Filesystem
Base class for filesystem checkers.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

public function run() {
  if (!file_exists($this
    ->getRootPath() . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, [
    'core',
    'core.api.php',
  ]))) {
    return [
      $this
        ->t('The web root could not be located.'),
    ];
  }
  return $this
    ->doCheck();
}