function MediaType::setFieldMap

Attributes

#[ActionMethod(adminLabel: new TranslatableMarkup('Set field mapping'), pluralize: FALSE)]

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 252

Class

MediaType
Defines the Media type configuration entity.

Namespace

Drupal\media\Entity

Code

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.