function MediaTypeInterface::getFieldMap

Same name in other branches
  1. 9 core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::getFieldMap()
  2. 10 core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::getFieldMap()
  3. 11.x core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::getFieldMap()

Returns the metadata field map.

Field mapping allows site builders to map media item-related metadata to entity fields. This information will be used when saving a given media item and if metadata values will be available they are going to be automatically copied to the corresponding entity fields.

Return value

array Field mapping array provided by media source with metadata attribute names as keys and entity field names as values.

1 method overrides MediaTypeInterface::getFieldMap()
MediaType::getFieldMap in core/modules/media/src/Entity/MediaType.php
Returns the metadata field map.

File

core/modules/media/src/MediaTypeInterface.php, line 88

Class

MediaTypeInterface
Provides an interface defining a media type entity.

Namespace

Drupal\media

Code

public function getFieldMap();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.