DataDefinition::getSetting

public DataDefinition::getSetting($setting_name)

Returns the value of a given setting.

Parameters

string $setting_name: The setting name.

Return value

mixed The setting value.

Overrides DataDefinitionInterface::getSetting

File

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

Class

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

Namespace

Drupal\Core\TypedData

Code

public function getSetting($setting_name) {
  return isset($this->definition['settings'][$setting_name]) ? $this->definition['settings'][$setting_name] : NULL;
}
doc_Drupal
2016-10-29 09:00:06
Comments
Leave a Comment

Please login to continue.