protected function PhoneNumberSettings::createPhoneNumberField in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Plugin/migrate/destination/PhoneNumberSettings.php \Drupal\sms\Plugin\migrate\destination\PhoneNumberSettings::createPhoneNumberField()
- 2.1.x src/Plugin/migrate/destination/PhoneNumberSettings.php \Drupal\sms\Plugin\migrate\destination\PhoneNumberSettings::createPhoneNumberField()
Creates a phone number field.
Parameters
\Drupal\sms\Entity\PhoneNumberSettingsInterface $phone_number_settings: The phone number settings for a given entity type.
See also
\Drupal\sms\Form\PhoneNumberSettingsForm::createNewField()
1 call to PhoneNumberSettings::createPhoneNumberField()
- PhoneNumberSettings::import in src/
Plugin/ migrate/ destination/ PhoneNumberSettings.php - Import the row.
File
- src/
Plugin/ migrate/ destination/ PhoneNumberSettings.php, line 68
Class
- PhoneNumberSettings
- Destination plugin for SMS phone number verifications.
Namespace
Drupal\sms\Plugin\migrate\destinationCode
protected function createPhoneNumberField(PhoneNumberSettingsInterface $phone_number_settings) {
PhoneNumberSettingsForm::createNewField($phone_number_settings
->getPhoneNumberEntityTypeId(), $phone_number_settings
->getPhoneNumberBundle(), $phone_number_settings
->getFieldName('phone_number'));
}