public function RocketChatConfigInterface::getElement in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 modules/rocket_chat_api/src/RocketChat/RocketChatConfigInterface.php \Drupal\rocket_chat_api\RocketChat\RocketChatConfigInterface::getElement()
Get a RocketChatConfigInterface Element.
Parameters
string $elementName: Key value to retrieve from the RocketChatConfigInterface Backend.
string $default: A possible Default to use when no config is found in the backend.
Return value
mixed The retrieved config value.
2 methods override RocketChatConfigInterface::getElement()
- Drupal8Config::getElement in modules/
rocket_chat_api/ src/ RocketChat/ Drupal8Config.php - Get a RocketChatConfigInterface Element.
- InMemoryConfig::getElement in modules/
rocket_chat_api/ src/ RocketChat/ InMemoryConfig.php - Get a RocketChatConfigInterface Element.
File
- modules/
rocket_chat_api/ src/ RocketChat/ RocketChatConfigInterface.php, line 31
Class
- RocketChatConfigInterface
- Interface to make an Arbitrary storage backend for the config elements.
Namespace
Drupal\rocket_chat_api\RocketChatCode
public function getElement($elementName, $default = NULL);