private function AcquiaContentHubWebhookInterestCommands::formatWebhookUrl in Acquia Content Hub 8.2
Format webhook url in case of missing acquia-contenthub/webhook.
Parameters
string $webhook_url: Webhook url to format.
Return value
string Webhook url in proper format.
1 call to AcquiaContentHubWebhookInterestCommands::formatWebhookUrl()
- AcquiaContentHubWebhookInterestCommands::findWebhook in src/
Commands/ AcquiaContentHubWebhookInterestCommands.php - Find webhook information.
File
- src/
Commands/ AcquiaContentHubWebhookInterestCommands.php, line 294
Class
- AcquiaContentHubWebhookInterestCommands
- Tests commands that interact with webhook interests.
Namespace
Drupal\acquia_contenthub\CommandsCode
private function formatWebhookUrl(string $webhook_url) {
if (!strpos($webhook_url, 'acquia-contenthub/webhook')) {
$webhook_url .= 'acquia-contenthub/webhook';
}
return $webhook_url;
}