abstract class MimeDetectorBase in MimeDetect 8
A base class for mime detector plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\mimedetect\MimeDetectorBase implements MimeDetectorInterface
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\mimedetectView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MimeDetectorBase:: |
public | function |
Provide a description of the detector. Overrides MimeDetectorInterface:: |
|
MimeDetectorInterface:: |
public | function | Try MIME detection on a given file. | 1 |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |