public function PhoneNumberSettings::setFieldName in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::setFieldName()
- 2.1.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::setFieldName()
Gets a field mapping.
Parameters
string $map: ID to map field name, as found in sms.phone.*.*.fields.$map.
string|null $field_name: A field name, or NULL to unset.
Return value
$this Return phone number settings for chaining.
Overrides PhoneNumberSettingsInterface::setFieldName
File
- src/
Entity/ PhoneNumberSettings.php, line 192
Class
- PhoneNumberSettings
- Defines storage for an SMS Gateway instance.
Namespace
Drupal\sms\EntityCode
public function setFieldName($map, $field_name) {
$this->fields[$map] = $field_name;
return $this;
}