EntityFieldManager::getFieldMap

public function EntityFieldManager::getFieldMap

public EntityFieldManager::getFieldMap()

Gets a lightweight map of fields across bundles.

Return value

array An array keyed by entity type. Each value is an array which keys are field names and value is an array with two entries:

  • type: The field type.
  • bundles: An associative array of the bundles in which the field appears, where the keys and values are both the bundle's machine name.

Overrides EntityFieldManagerInterface::getFieldMap

File

core/lib/Drupal/Core/Entity/登录查看完整内容