public function ConfigurableResourceType::getInternalName in JSON:API Extras 8
Same name and namespace in other branches
- 8.2 src/ResourceType/ConfigurableResourceType.php \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceType::getInternalName()
Translates the public field name to the entity field name.
This is only here so we can allow polymorphic implementations to take a greater control on the field names.
Return value
string The internal field name as defined in the entity.
Overrides ResourceType::getInternalName
File
- src/
ResourceType/ ConfigurableResourceType.php, line 81
Class
- ConfigurableResourceType
- Defines a configurable resource type.
Namespace
Drupal\jsonapi_extras\ResourceTypeCode
public function getInternalName($field_name) {
return $this
->translateFieldName($field_name, 'publicName', 'fieldName');
}