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

Breadcrumb

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

function MediaSourceInterface::prepareFormDisplay

Prepares the media type fields for this source in the form display.

This method should normally call \Drupal\Core\Entity\Display\EntityDisplayInterface::setComponent() or \Drupal\Core\Entity\Display\EntityDisplayInterface::removeComponent() to configure the media type fields in the form display.

Parameters

\Drupal\media\MediaTypeInterface $type: The media type which is using this source.

\Drupal\Core\Entity\Display\EntityFormDisplayInterface $display: The display which should be prepared.

See also

\Drupal\Core\Entity\Display\EntityDisplayInterface::setComponent()

\Drupal\Core\Entity\Display\EntityDisplayInterface::removeComponent()

1 method overrides MediaSourceInterface::prepareFormDisplay()
MediaSourceBase::prepareFormDisplay in core/modules/media/src/MediaSourceBase.php
Prepares the media type fields for this source in the form display.

File

core/modules/media/src/MediaSourceInterface.php, line 179

Class

MediaSourceInterface
Defines the interface for media source plugins.

Namespace

Drupal\media

Code

public function prepareFormDisplay(MediaTypeInterface $type, EntityFormDisplayInterface $display);

API Navigation

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