You are here

public function PhoneNumberVerification::setEntity in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 60

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

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