protected function EntityLoadHelper::getEntityFields in YAML Content 8
Get the list of fields available for an entity type.
Parameters
$entity_type: The entity type ID.
Return value
array The map of fields mapped for the given entity type.
1 call to EntityLoadHelper::getEntityFields()
- EntityLoadHelper::identifyAttributeType in src/
Service/ EntityLoadHelper.php - Identify data keys as properties, fields, or other.
File
- src/
Service/ EntityLoadHelper.php, line 309
Class
- EntityLoadHelper
- A helper class to support identification and loading of existing entities.
Namespace
Drupal\yaml_content\ServiceCode
protected function getEntityFields($entity_type) {
$field_map = $this
->getEntityFieldManager()
->getFieldMap();
return $field_map[$entity_type];
}