trait SourceFieldPluginTrait in Lightning Media 8
Same name and namespace in other branches
- 8.2 src/SourceFieldPluginTrait.php \Drupal\lightning_media\SourceFieldPluginTrait
- 8.3 src/SourceFieldPluginTrait.php \Drupal\lightning_media\SourceFieldPluginTrait
Basic implementation of SourceFieldInterface.
Hierarchy
- trait \Drupal\lightning_media\SourceFieldPluginTrait
Deprecated
in Lightning 2.2.1 and will be removed in Lightning 2.3.0. Use \Drupal\media\MediaSourceInterface::getSourceFieldDefinition() instead.
File
- src/
SourceFieldPluginTrait.php, line 13
Namespace
Drupal\lightning_mediaView source
trait SourceFieldPluginTrait {
/**
* Implements InputMatchInterface::getSourceFieldDefinition().
*/
public function getSourceFieldDefinition(MediaTypeInterface $media_type) {
return $this
->getSourceFieldDefinition($media_type);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SourceFieldPluginTrait:: |
public | function | Implements InputMatchInterface::getSourceFieldDefinition(). |