public function NoReferrerSettingsForm::publishUri in No Referrer 8
Returns domain whitelist URI.
2 calls to NoReferrerSettingsForm::publishUri()
- NoReferrerSettingsForm::buildForm in src/
Form/ NoReferrerSettingsForm.php - Form constructor.
- NoReferrerSettingsForm::publish in src/
Form/ NoReferrerSettingsForm.php - Publishes domain whitelist.
File
- src/
Form/ NoReferrerSettingsForm.php, line 148
Class
- NoReferrerSettingsForm
- Implements a noreferrer Config form.
Namespace
Drupal\noreferrer\FormCode
public function publishUri() {
// For security through obscurity purposes, the whitelist URL is secret.
return 'public://noreferrer-whitelist-' . Crypt::hmacBase64('noreferrer-whitelist', $this->privateKey
->get()) . '.json';
}