FieldStorageConfig::setSetting

public FieldStorageConfig::setSetting($setting_name, $value)

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 569

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function setSetting($setting_name, $value) {
  $this->settings[$setting_name] = $value;
  return $this;
}
doc_Drupal
2016-10-29 09:12:25
Comments
Leave a Comment

Please login to continue.