You are here

public function PhoneNumberVerification::getEntity in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getEntity()
  2. 2.1.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getEntity()

Gets the entity for the phone number verification.

Return value

\Drupal\Core\Entity\EntityInterface|null The entity for the phone number verification, or NULL if it is missing.

Overrides PhoneNumberVerificationInterface::getEntity

1 call to PhoneNumberVerification::getEntity()
PhoneNumberVerification::preSave in src/Entity/PhoneNumberVerification.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/PhoneNumberVerification.php, line 51

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function getEntity() {
  return $this
    ->get('entity')->entity;
}