You are here

public function ConfigurableResourceType::getInternalName in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 8 src/ResourceType/ConfigurableResourceType.php \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceType::getInternalName()

@todo Remove this when JSON API Extras drops support for JSON API 1.x.

Overrides ResourceType::getInternalName

File

src/ResourceType/ConfigurableResourceType.php, line 61

Class

ConfigurableResourceType
Defines a configurable resource type.

Namespace

Drupal\jsonapi_extras\ResourceType

Code

public function getInternalName($field_name) {
  return $this
    ->translateFieldName($field_name, 'publicName', 'fieldName');
}