You are here

class Missing in Flysystem 8

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

Drupal plugin for the "NullAdapter" Flysystem adapter.

Plugin annotation


@Adapter(id = "missing")

Hierarchy

Expanded class hierarchy of Missing

3 files declare their use of Missing
FlysystemBridgeTest.php in tests/src/Unit/FlysystemBridgeTest.php
FlysystemFactoryTest.php in tests/src/Unit/FlysystemFactoryTest.php
MissingTest.php in tests/src/Unit/Flysystem/MissingTest.php

File

src/Flysystem/Missing.php, line 14

Namespace

Drupal\flysystem\Flysystem
View source
class Missing implements FlysystemPluginInterface {

  /**
   * {@inheritdoc}
   */
  public function getAdapter() {
    return new MissingAdapter();
  }

  /**
   * {@inheritdoc}
   */
  public function getExternalUrl($uri) {
    return '';
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
Missing::ensure public function Checks the sanity of the filesystem. Overrides FlysystemPluginInterface::ensure
Missing::getAdapter public function Returns the Flysystem adapter. Overrides FlysystemPluginInterface::getAdapter
Missing::getExternalUrl public function Returns a web accessible URL for the resource. Overrides FlysystemPluginInterface::getExternalUrl