You are here

public function MediaInterface::getSource in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getSource()
  2. 9 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getSource()

Returns the media source.

Return value

\Drupal\media\MediaSourceInterface The media source.

1 method overrides MediaInterface::getSource()
Media::getSource in core/modules/media/src/Entity/Media.php
Returns the media source.

File

core/modules/media/src/MediaInterface.php, line 65

Class

MediaInterface
Provides an interface defining an entity for media items.

Namespace

Drupal\media

Code

public function getSource();