You are here

public function MediaSourceInterface::getSourceFieldDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 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\media

Code

public function getSourceFieldDefinition(MediaTypeInterface $type);