function MediaSourceInterface::getSourceFieldDefinition
Same name in other branches
- 9 core/modules/media/src/MediaSourceInterface.php \Drupal\media\MediaSourceInterface::getSourceFieldDefinition()
- 8.9.x 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 131
Class
- MediaSourceInterface
- Defines the interface for media source plugins.
Namespace
Drupal\mediaCode
public function getSourceFieldDefinition(MediaTypeInterface $type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.