You are here

public function EventType::id in Booking and Availability Management Tools for Drupal 8

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

2 calls to EventType::id()
EventType::delete in modules/bat_event/src/Entity/EventType.php
Deletes an entity permanently.
EventType::save in modules/bat_event/src/Entity/EventType.php
Saves an entity permanently.

File

modules/bat_event/src/Entity/EventType.php, line 92
Contains \Drupal\bat_event\Entity\EventType.

Class

EventType
Defines the Event type configuration entity.

Namespace

Drupal\bat_event\Entity

Code

public function id() {
  return $this->type;
}