public function EntityFieldManager::setFieldMap in Drupal 9
Same name and namespace in other branches
- 8 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 490
Class
- EntityFieldManager
- Manages the discovery of entity fields.
Namespace
Drupal\Core\EntityCode
public function setFieldMap(array $field_map) {
$this->fieldMap = $field_map;
return $this;
}