You are here

class Missing in Flysystem 7

Same name and namespace in other branches
  1. 8 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 "MissingAdapter" Flysystem adapter.

Hierarchy

Expanded class hierarchy of Missing

File

src/Flysystem/Missing.php, line 16
Contains \Drupal\flysystem\Flysystem\Missing.

Namespace

Drupal\flysystem\Flysystem
View source
class Missing extends FlysystemPluginBase {

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
FlysystemPluginBase::create public static function Creates a new plugin instance. Overrides FlysystemPluginInterface::create 1
FlysystemPluginBase::getScheme protected function Returns the scheme from the internal URI.
FlysystemPluginBase::getTarget protected function Returns the target file path of a URI.
Missing::ensure public function
Missing::getAdapter public function Returns the Flysystem adapter Overrides FlysystemPluginInterface::getAdapter
Missing::getExternalUrl public function Returns a web accessible URL for the resource. Overrides FlysystemPluginBase::getExternalUrl