function MediaTypeInterface::setFieldMap

Sets the metadata field map.

Parameters

array $map: Field mapping array with metadata attribute names as keys and entity field names as values.

Return value

$this

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

File

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

Class

MediaTypeInterface
Provides an interface defining a media type entity.

Namespace

Drupal\media

Code

public function setFieldMap(array $map);

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