public function PhoneNumberSettingsListBuilder::__construct in SMS Framework 8
Constructs a new PhoneNumberSettingsListBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
\Drupal\Core\Entity\EntityStorageInterface $phone_number_verification_storage: Storage for Phone Number Verification entities.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\sms\Provider\PhoneNumberVerificationInterface $phone_number_verification_provider: The phone number verification provider.
Overrides EntityListBuilder::__construct
File
- src/
Lists/ PhoneNumberSettingsListBuilder.php, line 66
Class
- PhoneNumberSettingsListBuilder
- Builds a list of phone number settings.
Namespace
Drupal\sms\ListsCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityStorageInterface $phone_number_verification_storage, RequestStack $request_stack, PhoneNumberVerificationInterface $phone_number_verification_provider) {
parent::__construct($entity_type, $storage);
$this->phoneNumberVerificationStorage = $phone_number_verification_storage;
$this->phoneNumberVerificationProvider = $phone_number_verification_provider;
$this->requestTime = $request_stack
->getCurrentRequest()->server
->get('REQUEST_TIME');
}