class ReloadConfigFormCommand in Purge 8.3
Ajax command to reload the purge configuration form from modal dialogs.
Hierarchy
- class \Drupal\Core\Ajax\RedirectCommand implements CommandInterface
- class \Drupal\purge_ui\Form\ReloadConfigFormCommand implements CommandInterface
Expanded class hierarchy of ReloadConfigFormCommand
File
- modules/
purge_ui/ src/ Form/ ReloadConfigFormCommand.php, line 14
Namespace
Drupal\purge_ui\FormView source
class ReloadConfigFormCommand extends RedirectCommand implements CommandInterface {
/**
* Route providing the main configuration form of the purge module.
*
* @var string
*/
protected $route = 'purge_ui.dashboard';
/**
* Construct a ReloadConfigFormCommand object.
*
* @param string $fragment
* The fragment to jump to in the main config form.
*/
public function __construct($fragment) {
$options = [
'fragment' => $fragment,
'query' => [
$fragment => time(),
],
];
parent::__construct(Url::fromRoute($this->route, [], $options)
->toString());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RedirectCommand:: |
protected | property | The URL that will be loaded into window.location. | |
RedirectCommand:: |
public | function |
Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface:: |
|
ReloadConfigFormCommand:: |
protected | property | Route providing the main configuration form of the purge module. | |
ReloadConfigFormCommand:: |
public | function |
Construct a ReloadConfigFormCommand object. Overrides RedirectCommand:: |