public function EntityFieldManager::setFieldMap
public EntityFieldManager::setFieldMap(array $field_map)
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 417
Class
- EntityFieldManager
- Manages the discovery of entity fields.
Namespace
Drupal\Core\EntityCode
public function setFieldMap(array $field_map) { $this->fieldMap = $field_map; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFieldManager.php/function/EntityFieldManager::setFieldMap/8.1.x