You are here

public function EntityFieldManager::setFieldMap in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::setFieldMap()

Sets a lightweight map of fields across bundles.

Parameters

array[] $field_map: See the return value of self::getFieldMap().

Return value

$this

Overrides EntityFieldManagerInterface::setFieldMap

File

core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 422
Contains \Drupal\Core\Entity\EntityFieldManager.

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;
}