You are here

abstract class MimeDetectorBase in MimeDetect 8

A base class for mime detector plugins.

Hierarchy

Expanded class hierarchy of MimeDetectorBase

See also

\Drupal\mimedetect\Annotation\MimeDetector

\Drupal\mimedetect\MimeDetectorInterface

1 file declares its use of MimeDetectorBase
CsvMimeDetector.php in src/Plugin/MimeDetector/CsvMimeDetector.php

File

src/MimeDetectorBase.php, line 13

Namespace

Drupal\mimedetect
View source
abstract class MimeDetectorBase extends PluginBase implements MimeDetectorInterface {

  /**
   * {@inheritdoc}
   */
  public function description() {

    // Retrieve the @description property from the annotation and return it.
    return $this->pluginDefinition['description'];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MimeDetectorBase::description public function Provide a description of the detector. Overrides MimeDetectorInterface::description
MimeDetectorInterface::detect public function Try MIME detection on a given file. 1
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92