protected function ZoomApiWebhooksController::getKeyValue in Zoom API 8
Same name and namespace in other branches
- 2.0.x src/Controller/ZoomApiWebhooksController.php \Drupal\zoomapi\Controller\ZoomApiWebhooksController::getKeyValue()
Return a KeyValue.
Parameters
string $whichConfig: Name of the config in which the key name is stored.
Return value
mixed Null or string.
1 call to ZoomApiWebhooksController::getKeyValue()
- ZoomApiWebhooksController::__construct in src/
Controller/ ZoomApiWebhooksController.php - Constructs a new WebhookController object.
File
- src/
Controller/ ZoomApiWebhooksController.php, line 213
Class
- ZoomApiWebhooksController
- Class ZoomApiWebhooksController.
Namespace
Drupal\zoomapi\ControllerCode
protected function getKeyValue($whichConfig) {
if (empty($this->config
->get($whichConfig))) {
return NULL;
}
$whichKey = $this->config
->get($whichConfig);
$keyValue = $this->keyRepository
->getKey($whichKey)
->getKeyValue();
if (empty($keyValue)) {
return NULL;
}
return $keyValue;
}