public function MediaSourceInterface::getSourceFieldDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/src/MediaSourceInterface.php \Drupal\media\MediaSourceInterface::getSourceFieldDefinition()
- 9 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.
File
- core/
modules/ media/ src/ MediaSourceInterface.php, line 131
Class
- MediaSourceInterface
- Defines the interface for media source plugins.
Namespace
Drupal\mediaCode
public function getSourceFieldDefinition(MediaTypeInterface $type);