You are here

public function PhoneNumberVerification::setEntity in SMS Framework 8

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

Sets the entity for the phone number verification.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for the phone number verification.

Return value

$this Return phone number verification for chaining.

Overrides PhoneNumberVerificationInterface::setEntity

File

src/Entity/PhoneNumberVerification.php, line 58

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function setEntity(EntityInterface $entity) {
  $this
    ->set('entity', $entity);
  return $this;
}