public function Media::getSource in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getSource()
- 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getSource()
Returns the media source.
Return value
\Drupal\media\MediaSourceInterface The media source.
Overrides MediaInterface::getSource
7 calls to Media::getSource()
- Media::getDefaultThumbnailUri in core/
modules/ media/ src/ Entity/ Media.php - Returns the URI of the default thumbnail.
- Media::getName in core/
modules/ media/ src/ Entity/ Media.php - Gets the media item name.
- Media::getThumbnailUri in core/
modules/ media/ src/ Entity/ Media.php - Gets the URI for the thumbnail of a media item.
- Media::hasSourceFieldChanged in core/
modules/ media/ src/ Entity/ Media.php - Determines if the source field value has changed.
- Media::prepareSave in core/
modules/ media/ src/ Entity/ Media.php - Sets the media entity's field values from the source's metadata.
File
- core/
modules/ media/ src/ Entity/ Media.php, line 136
Class
- Media
- Defines the media entity class.
Namespace
Drupal\media\EntityCode
public function getSource() {
return $this->bundle->entity
->getSource();
}