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; }
Please login to continue.