function MediaType::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
Overrides MediaTypeInterface::setFieldMap
File
-
core/
modules/ media/ src/ Entity/ MediaType.php, line 236
Class
- MediaType
- Defines the Media type configuration entity.
Namespace
Drupal\media\EntityCode
public function setFieldMap(array $map) {
return $this->set('field_map', $map);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.