You are here

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

Same name and namespace in other branches
  1. 8 src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::getFieldName()
  2. 2.1.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::getFieldName()

Gets a field mapping.

Parameters

string $map: ID to map field name, as found in sms.phone.*.*.fields.$map.

Return value

string|null A field name, or NULL if not set.

Overrides PhoneNumberSettingsInterface::getFieldName

File

src/Entity/PhoneNumberSettings.php, line 197

Class

PhoneNumberSettings
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function getFieldName($map) {
  return isset($this->fields[$map]) ? $this->fields[$map] : NULL;
}