public function Test7Config::setElement in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 modules/rocket_chat_api/src/RocketChat/TestConfig.class.inc \Drupal\rocket_chat_api\RocketChat\Test7Config::setElement()
Set an Element in the RocketChatConfigInterface.
Parameters
string $elementName: Key value to set in the RocketChatConfigInterface Backend.
string $newValue: the new Value to store.
Overrides Drupal8Config::setElement
File
- modules/
rocket_chat_api/ src/ RocketChat/ TestConfig.class.inc, line 65
Class
- Test7Config
- Class Test7Config For Testing.
Namespace
Drupal\rocket_chat_api\RocketChatCode
public function setElement($elementName, $newValue) {
switch ($elementName) {
case "rocket_chat_uid":
$this->userId = $newValue;
break;
case "rocket_chat_uit":
$this->userToken = $newValue;
break;
case "rocket_chat_url":
$this->server = $newValue;
break;
default:
fwrite(STDERR, "TEST SET [{$elementName}=>{$newValue}]\n");
}
}