public function SerialSQLStorage::getAllFields in Serial Field 8
Gets a lightweight map of fields across bundles filtered by field type.
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 SerialStorageInterface::getAllFields
File
- src/
SerialSQLStorage.php, line 149
Class
- SerialSQLStorage
- Serial storage service definition.
Namespace
Drupal\serialCode
public function getAllFields() {
return \Drupal::getContainer()
->get('entity_field.manager')
->getFieldMapByFieldType(SerialStorageInterface::SERIAL_FIELD_TYPE);
}