SourceFieldPluginTrait.php in Lightning Media 8
Same filename and directory in other branches
Namespace
Drupal\lightning_mediaFile
src/SourceFieldPluginTrait.phpView source
<?php
namespace Drupal\lightning_media;
use Drupal\media\MediaTypeInterface;
/**
* Basic implementation of SourceFieldInterface.
*
* @deprecated in Lightning 2.2.1 and will be removed in Lightning 2.3.0. Use
* \Drupal\media\MediaSourceInterface::getSourceFieldDefinition() instead.
*/
trait SourceFieldPluginTrait {
/**
* Implements InputMatchInterface::getSourceFieldDefinition().
*/
public function getSourceFieldDefinition(MediaTypeInterface $media_type) {
return $this
->getSourceFieldDefinition($media_type);
}
}
Traits
Name | Description |
---|---|
SourceFieldPluginTrait Deprecated | Basic implementation of SourceFieldInterface. |