You are here

public function SmsEntityPhoneNumber::__construct in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Event/SmsEntityPhoneNumber.php \Drupal\sms\Event\SmsEntityPhoneNumber::__construct()
  2. 2.1.x src/Event/SmsEntityPhoneNumber.php \Drupal\sms\Event\SmsEntityPhoneNumber::__construct()

Constructs the object.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to find phone numbers.

bool|null $verified: Whether the returned phone numbers must be verified, or NULL to get all phone numbers regardless of status.

File

src/Event/SmsEntityPhoneNumber.php, line 47

Class

SmsEntityPhoneNumber
Event fired when resolving phone numbers for an entity.

Namespace

Drupal\sms\Event

Code

public function __construct(EntityInterface $entity, $verified = TRUE) {
  $this->entity = $entity;
  $this->verified = $verified;
}