function MediaType::getFieldMap
Same name and namespace in other branches
- 9 core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::getFieldMap()
- 8.9.x core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::getFieldMap()
- 11.x core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::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.
Overrides MediaTypeInterface::getFieldMap
File
-
core/
modules/ media/ src/ Entity/ MediaType.php, line 233
Class
- MediaType
- Defines the Media type configuration entity.
Namespace
Drupal\media\EntityCode
public function getFieldMap() {
return $this->field_map;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.