You are here

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

Expanded class hierarchy of MediaDownloadInline

File

src/Plugin/Linkit/Substitution/MediaDownloadInline.php, line 15

Namespace

Drupal\media_entity_download\Plugin\Linkit\Substitution
View source
class MediaDownloadInline extends MediaDownload {

  /**
   * {@inheritdoc}
   */
  public function getContentDisposition() {
    return ResponseHeaderBag::DISPOSITION_INLINE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MediaDownload::$entityTypeManager protected property The entity type manager.
MediaDownload::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
MediaDownload::getUrl public function Get the URL associated with a given entity. Overrides SubstitutionInterface::getUrl
MediaDownload::isApplicable public static function Checks if this substitution plugin is applicable for the given entity type. Overrides SubstitutionInterface::isApplicable
MediaDownload::__construct public function Constructs a Media object. Overrides PluginBase::__construct
MediaDownloadInline::getContentDisposition public function Get the disposition header for downloads. Overrides MediaDownload::getContentDisposition
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.