Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MediaSourceInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal