You are here

public function RdfMapping::getPreparedBundleMapping in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/rdf/src/Entity/RdfMapping.php \Drupal\rdf\Entity\RdfMapping::getPreparedBundleMapping()
  2. 9 core/modules/rdf/src/Entity/RdfMapping.php \Drupal\rdf\Entity\RdfMapping::getPreparedBundleMapping()

Gets the mapping for the bundle-level data.

The prepared bundle mapping should be used when outputting data in RDF serializations such as RDFa. In the prepared mapping, the mapping configuration's CURIE arrays are processed into CURIE strings suitable for output.

Return value

array The bundle mapping.

Overrides RdfMappingInterface::getPreparedBundleMapping

File

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

Class

RdfMapping
Config entity for working with RDF mappings.

Namespace

Drupal\rdf\Entity

Code

public function getPreparedBundleMapping() {
  return [
    'types' => $this->types,
  ];
}