function MediaInterface::getSource

Same name in other branches
  1. 8.9.x core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getSource()
  2. 10 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getSource()
  3. 11.x 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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.