class FancyLoginRefreshPageCommand in Fancy Login 3.0.x
Same name and namespace in other branches
- 8.2 src/Ajax/FancyLoginRefreshPageCommand.php \Drupal\fancy_login\Ajax\FancyLoginRefreshPageCommand
Defines the refresh page ajax command.
Hierarchy
- class \Drupal\fancy_login\Ajax\FancyLoginRefreshPageCommand implements CommandInterface
Expanded class hierarchy of FancyLoginRefreshPageCommand
1 file declares its use of FancyLoginRefreshPageCommand
- fancy_login.module in ./
fancy_login.module - Holds hooks for the Fancy Login module.
File
- src/
Ajax/ FancyLoginRefreshPageCommand.php, line 10
Namespace
Drupal\fancy_login\AjaxView source
class FancyLoginRefreshPageCommand implements CommandInterface {
/**
* A boolean indicating whether or not the popup should be closed first.
*
* @var bool
*/
protected $closePopup;
/**
* Constructs a FancyLoginRefreshPageCommand object.
*
* @param bool $closePopup
* A boolean indicating whether or not the popup should be closed before
* refreshing.
*/
public function __construct($closePopup) {
$this->closePopup = $closePopup;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'fancyLoginRefreshPage',
'closePopup' => $this->closePopup,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FancyLoginRefreshPageCommand:: |
protected | property | A boolean indicating whether or not the popup should be closed first. | |
FancyLoginRefreshPageCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
FancyLoginRefreshPageCommand:: |
public | function | Constructs a FancyLoginRefreshPageCommand object. |