You are here

public function RdfMappingInterface::getFieldMapping in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rdf/src/RdfMappingInterface.php \Drupal\rdf\RdfMappingInterface::getFieldMapping()

Gets the mapping config for a field.

This function returns the field mapping as stored in config, which may contain CURIE arrays. If the mapping is needed for output in a serialization format, such as RDFa, then getPreparedFieldMapping() should be used instead.

Parameters

string $field_name: The name of the field.

Return value

array The field mapping config array, or an empty array if there is no mapping.

1 method overrides RdfMappingInterface::getFieldMapping()
RdfMapping::getFieldMapping in core/modules/rdf/src/Entity/RdfMapping.php
Gets the mapping config for a field.

File

core/modules/rdf/src/RdfMappingInterface.php, line 96
Contains \Drupal\rdf\RdfMappingInterface.

Class

RdfMappingInterface
Provides an interface defining an RDF mapping entity.

Namespace

Drupal\rdf

Code

public function getFieldMapping($field_name);