You are here

public function NameFormatter::getSetting in Name Field 8

Gets the value of a setting for the formatter.

Parameters

string $key: The setting name.

Return value

mixed The value of the setting or NULL if not found.

Overrides NameFormatterInterface::getSetting

File

src/NameFormatter.php, line 117

Class

NameFormatter
Primary name formatter for an array of name components.

Namespace

Drupal\name

Code

public function getSetting($key) {
  return isset($this->settings[$key]) ? $this->settings[$key] : NULL;
}