You are here

public function FieldConfigBase::setSetting in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\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 367
Contains \Drupal\Core\Field\FieldConfigBase.

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

public function setSetting($setting_name, $value) {
  $this->settings[$setting_name] = $value;
  return $this;
}