You are here

public function PhoneNumberSettings::setFieldName in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::setFieldName()
  2. 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 204

Class

PhoneNumberSettings
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function setFieldName($map, $field_name) {
  $this->fields[$map] = $field_name;
  return $this;
}