You are here

function flysystem_requirements in Flysystem 8

Same name and namespace in other branches
  1. 7 flysystem.install \flysystem_requirements()
  2. 3.x flysystem.install \flysystem_requirements()
  3. 2.0.x flysystem.install \flysystem_requirements()
  4. 3.0.x flysystem.install \flysystem_requirements()

Implements hook_requirements().

4 calls to flysystem_requirements()
InstallFunctionsTest::testFlysystemRequirementsHandlesInstall in tests/src/Unit/InstallFunctionsTest.php
Tests flysystem_requirements() handles install.
InstallFunctionsTest::testFlysystemRequirementsHandlesInvalidSchemes in tests/src/Unit/InstallFunctionsTest.php
Tests flysystem_requirements() detects invalid schemes.
InstallFunctionsTest::testFlysystemRequirementsHandlesRuntime in tests/src/Unit/InstallFunctionsTest.php
Tests flysystem_requirements() handles runtime.
InstallFunctionsTest::testFlysystemRequirementsHandlesUpdate in tests/src/Unit/InstallFunctionsTest.php
Tests flysystem_requirements() handles update.

File

./flysystem.install, line 14
Install, update and uninstall functions for the flysystem module.

Code

function flysystem_requirements($phase) {
  $requirements = [];
  __flysystem_validate_schemes($requirements);
  __flysystem_check_dependencies($requirements);
  if ($phase === 'runtime') {
    __flysystem_call_ensure($requirements);
  }
  return $requirements;
}