MediaSourceInterface::METADATA_ATTRIBUTE_LINK_TARGET
Key for "Drupal entity link target" metadata attribute.
Media source plugins knows how the media in this source is stored and hence also how to generate a link target for it, if at all possible. This key is reserved to enable \Drupal\media\Entity\MediaLinkTarget to generate link targets for all media, with a default implementation in the base class that only works if standalone media URLs are enabled.
See also
\Drupal\media\Entity\MediaLinkTarget
\Drupal\Core\Entity\EntityLinkTargetInterface
\Drupal\media\MediaSourceBase::getMetadata()
File
-
core/
modules/ media/ src/ MediaSourceInterface.php, line 90
Class
- MediaSourceInterface
- Defines the interface for media source plugins.
Namespace
Drupal\mediaCode
const METADATA_ATTRIBUTE_LINK_TARGET = 'drupal:entity_link_target';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.