You are here

public function FancyLoginRedirectCommand::render in Fancy Login 8.2

Same name and namespace in other branches
  1. 3.0.x src/Ajax/FancyLoginRedirectCommand.php \Drupal\fancy_login\Ajax\FancyLoginRedirectCommand::render()

Return an array to be run through json_encode and sent to the client.

Overrides CommandInterface::render

File

src/Ajax/FancyLoginRedirectCommand.php, line 43

Class

FancyLoginRedirectCommand
Defines the redirect command.

Namespace

Drupal\fancy_login\Ajax

Code

public function render() {
  return [
    'command' => 'fancyLoginRedirect',
    'closePopup' => $this->closePopup,
    'destination' => $this->destination,
  ];
}