You are here

public function RdfMappingInterface::setFieldMapping in Zircon Profile 8

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

Sets the mapping config for a field.

Parameters

string $field_name: The name of the field.

array $mapping: The field mapping.

Return value

\Drupal\rdf\Entity\RdfMapping The RdfMapping object.

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

File

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

Class

RdfMappingInterface
Provides an interface defining an RDF mapping entity.

Namespace

Drupal\rdf

Code

public function setFieldMapping($field_name, array $mapping = array());