class MediaDownloadInline in Media Entity Download 8.2
A substitution plugin for a direct download link to a file.
Plugin annotation
@Substitution(
id = "media_download_inline",
label = @Translation("Direct download URL for media item (Browser may display media directly)"),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\media_entity_download\Plugin\Linkit\Substitution\MediaDownload implements ContainerFactoryPluginInterface, SubstitutionInterface
- class \Drupal\media_entity_download\Plugin\Linkit\Substitution\MediaDownloadInline
- class \Drupal\media_entity_download\Plugin\Linkit\Substitution\MediaDownload implements ContainerFactoryPluginInterface, SubstitutionInterface
Expanded class hierarchy of MediaDownloadInline
File
- src/
Plugin/ Linkit/ Substitution/ MediaDownloadInline.php, line 15
Namespace
Drupal\media_entity_download\Plugin\Linkit\SubstitutionView source
class MediaDownloadInline extends MediaDownload {
/**
* {@inheritdoc}
*/
public function getContentDisposition() {
return ResponseHeaderBag::DISPOSITION_INLINE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaDownload:: |
protected | property | The entity type manager. | |
MediaDownload:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
MediaDownload:: |
public | function |
Get the URL associated with a given entity. Overrides SubstitutionInterface:: |
|
MediaDownload:: |
public static | function |
Checks if this substitution plugin is applicable for the given entity type. Overrides SubstitutionInterface:: |
|
MediaDownload:: |
public | function |
Constructs a Media object. Overrides PluginBase:: |
|
MediaDownloadInline:: |
public | function |
Get the disposition header for downloads. Overrides MediaDownload:: |
|
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. |