EntityFieldManager::$fieldMap

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

An array of lightweight maps of fields, keyed by entity type.

Each value is an array whose keys are field names and whose value is an array with two entries:

  • type: The field type.
  • bundles: The bundles in which the field appears.

Type: array

File

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

Class

EntityFieldManager
Manages the discovery of entity fields.

Namespace

Drupal\Core\Entity

Code

protected $fieldMap = [];

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