public function NameFormatter::setSetting in Name Field 8
Sets the value of a setting for the formatter.
Parameters
string $key: The setting name.
mixed $value: The setting value.
Return value
\Drupal\name\NameFormatterInterface The name formatter instance.
Overrides NameFormatterInterface::setSetting
File
- src/
NameFormatter.php, line 109
Class
- NameFormatter
- Primary name formatter for an array of name components.
Namespace
Drupal\nameCode
public function setSetting($key, $value) {
$this->settings[$key] = $value;
return $this;
}