You are here

public function RngEventType::id in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::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

src/Entity/RngEventType.php, line 362

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function id() {
  return $this
    ->getEventEntityTypeId() . '.' . $this
    ->getEventBundle();
}