public function SmsBlastForm::__construct in SMS Framework 8
Constructs a new SmsBlastForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\sms\Provider\PhoneNumberProviderInterface $phone_number_provider: The phone number provider.
File
- modules/
sms_blast/ src/ SmsBlastForm.php, line 39
Class
- SmsBlastForm
- Defines a form for sending mass messages.
Namespace
Drupal\sms_blastCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, PhoneNumberProviderInterface $phone_number_provider) {
$this->phoneNumberVerificationStorage = $entity_type_manager
->getStorage('sms_phone_number_verification');
$this->phoneNumberProvider = $phone_number_provider;
}