public function MediaSourceInterface::getSourceFieldDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media/src/MediaSourceInterface.php \Drupal\media\MediaSourceInterface::getSourceFieldDefinition()
- 10 core/modules/media/src/MediaSourceInterface.php \Drupal\media\MediaSourceInterface::getSourceFieldDefinition()
Get the source field definition for a media type.
Parameters
\Drupal\media\MediaTypeInterface $type: A media type.
Return value
\Drupal\Core\Field\FieldDefinitionInterface|null The source field definition, or NULL if it doesn't exist or has not been configured yet.
1 method overrides MediaSourceInterface::getSourceFieldDefinition()
- MediaSourceBase::getSourceFieldDefinition in core/
modules/ media/ src/ MediaSourceBase.php - Get the source field definition for a media type.
File
- core/
modules/ media/ src/ MediaSourceInterface.php, line 132
Class
- MediaSourceInterface
- Defines the interface for media source plugins.
Namespace
Drupal\mediaCode
public function getSourceFieldDefinition(MediaTypeInterface $type);