private function SettingsForm::prepareHeadersDisplay in Access unpublished 8
Format array to display on settings form.
Return value
string Return string of HTTP headers.
1 call to SettingsForm::prepareHeadersDisplay()
- SettingsForm::buildForm in src/
Form/ SettingsForm.php - Form constructor.
File
- src/
Form/ SettingsForm.php, line 120
Class
- SettingsForm
- Configure access unpublished settings for this site.
Namespace
Drupal\access_unpublished\FormCode
private function prepareHeadersDisplay() {
$headers = $this
->config('access_unpublished.settings')
->get('modify_http_headers');
$lines = [];
foreach ($headers as $key => $value) {
$lines[] = "{$key}|{$value}";
}
return implode("\n", $lines);
}