public function FieldStorageConfig::setSetting in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::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 FieldStorageConfigInterface::setSetting
File
- core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 571
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function setSetting($setting_name, $value) {
$this->settings[$setting_name] = $value;
return $this;
}