You are here

public function RdfMapping::id in Drupal 9

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

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

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

Class

RdfMapping
Config entity for working with RDF mappings.

Namespace

Drupal\rdf\Entity

Code

public function id() {
  return $this->targetEntityType . '.' . $this->bundle;
}