function RdfMapping::getBundleMapping

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

Overrides RdfMappingInterface::getBundleMapping

File

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

Class

RdfMapping
Config entity for working with RDF mappings.

Namespace

Drupal\rdf\Entity

Code

public function getBundleMapping() {
    if (!empty($this->types)) {
        return [
            'types' => $this->types,
        ];
    }
    return [];
}

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