DataDefinition::setSetting

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

Sets a definition setting.

Parameters

string $setting_name: The definition setting to set.

mixed $value: The value to set.

Return value

static The object itself for chaining.

File

core/lib/Drupal/Core/TypedData/DataDefinition.php, line 251

Class

DataDefinition
A typed data definition class for defining data based on defined data types.

Namespace

Drupal\Core\TypedData

Code

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

Please login to continue.