You are here

public function PhoneNumberSettings::id in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::id()
  2. 2.1.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::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/PhoneNumberSettings.php, line 103

Class

PhoneNumberSettings
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

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