function MediaType::getSource
Returns the media source plugin.
Return value
\Drupal\media\MediaSourceInterface The media source.
Overrides MediaTypeInterface::getSource
File
-
core/
modules/ media/ src/ Entity/ MediaType.php, line 188
Class
- MediaType
- Defines the Media type configuration entity.
Namespace
Drupal\media\EntityCode
public function getSource() {
return $this->sourcePluginCollection()
->get($this->source);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.