function FieldConfigBase::setSetting
Sets the value for a field setting by name.
Parameters
string $setting_name: The name of the setting.
mixed $value: The value of the setting.
Return value
$this
Overrides FieldConfigInterface::setSetting
File
- 
              core/lib/ Drupal/ Core/ Field/ FieldConfigBase.php, line 374 
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function setSetting($setting_name, $value) {
  $this->settings[$setting_name] = $value;
  return $this;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
