You are here

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

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

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

Overrides ResourceType::getPublicName

File

src/ResourceType/ConfigurableResourceType.php, line 52

Class

ConfigurableResourceType
Defines a configurable resource type.

Namespace

Drupal\jsonapi_extras\ResourceType

Code

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