public function ReloadConfigFormCommand::__construct in Purge 8.3
Construct a ReloadConfigFormCommand object.
Parameters
string $fragment: The fragment to jump to in the main config form.
Overrides RedirectCommand::__construct
File
- modules/
purge_ui/ src/ Form/ ReloadConfigFormCommand.php, line 29
Class
- ReloadConfigFormCommand
- Ajax command to reload the purge configuration form from modal dialogs.
Namespace
Drupal\purge_ui\FormCode
public function __construct($fragment) {
$options = [
'fragment' => $fragment,
'query' => [
$fragment => time(),
],
];
parent::__construct(Url::fromRoute($this->route, [], $options)
->toString());
}