function RdfMapping::setFieldMapping

Same name and namespace in other branches
  1. 8.9.x core/modules/rdf/src/Entity/RdfMapping.php \Drupal\rdf\Entity\RdfMapping::setFieldMapping()

Overrides RdfMappingInterface::setFieldMapping

File

core/modules/rdf/src/Entity/RdfMapping.php, line 129

Class

RdfMapping
Config entity for working with RDF mappings.

Namespace

Drupal\rdf\Entity

Code

public function setFieldMapping($field_name, array $mapping = []) {
    $this->fieldMappings[$field_name] = $mapping;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.