You are here

public function Missing::ensure in Flysystem 8

Same name and namespace in other branches
  1. 7 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::ensure()
  2. 3.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::ensure()
  3. 2.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::ensure()
  4. 3.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::ensure()

Checks the sanity of the filesystem.

If this is a local filesystem, .htaccess file should be in place.

Return value

array A list of error messages.

Overrides FlysystemPluginInterface::ensure

File

src/Flysystem/Missing.php, line 33

Class

Missing
Drupal plugin for the "NullAdapter" Flysystem adapter.

Namespace

Drupal\flysystem\Flysystem

Code

public function ensure($force = FALSE) {
  return [
    [
      'severity' => RfcLogLevel::ERROR,
      'message' => 'The Flysystem driver is missing.',
      'context' => [],
    ],
  ];
}