function Media::getSource
Same name in other branches
- 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getSource()
- 10 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getSource()
- 11.x core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getSource()
Overrides MediaInterface::getSource
5 calls to Media::getSource()
- 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::prepareSave in core/
modules/ media/ src/ Entity/ Media.php - Sets the media entity's field values from the source's metadata.
- Media::updateThumbnail in core/
modules/ media/ src/ Entity/ Media.php - Update the thumbnail for the media item.
- Media::validate in core/
modules/ media/ src/ Entity/ Media.php
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.