function DataDefinitionInterface::getSetting
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getSetting()
- 8.9.x core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getSetting()
- 10 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getSetting()
Returns the value of a given setting.
Parameters
string $setting_name: The setting name.
Return value
mixed The setting value or NULL if the setting name doesn't exist.
2 methods override DataDefinitionInterface::getSetting()
- DataDefinition::getSetting in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - Returns the value of a given setting.
- FieldConfigBase::getSetting in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php - Returns the value of a given setting.
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataDefinitionInterface.php, line 148
Class
- DataDefinitionInterface
- Interface for data definitions.
Namespace
Drupal\Core\TypedDataCode
public function getSetting($setting_name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.