public function MessageTemplateInterface::getSetting in Message 8
Return a single setting by key.
Parameters
string $key: The key to return.
mixed $default_value: The default value to use in case the key is missing. Defaults to NULL.
Return value
mixed The value of the setting or the default value if none found.
1 method overrides MessageTemplateInterface::getSetting()
- MessageTemplate::getSetting in src/
Entity/ MessageTemplate.php - Return a single setting by key.
File
- src/
MessageTemplateInterface.php, line 137
Class
- MessageTemplateInterface
- Provides an interface defining a Message template entity.
Namespace
Drupal\messageCode
public function getSetting($key, $default_value = NULL);