function EntityFieldManager::setFieldMap

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::setFieldMap()
  2. 10 core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::setFieldMap()
  3. 11.x core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::setFieldMap()

Overrides EntityFieldManagerInterface::setFieldMap

File

core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 497

Class

EntityFieldManager
Manages the discovery of entity fields.

Namespace

Drupal\Core\Entity

Code

public function setFieldMap(array $field_map) {
    $this->fieldMap = $field_map;
    return $this;
}

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