You are here

public function FancyLoginRedirectCommand::__construct 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::__construct()

Constructs a FancyLoginRedirectCommand object.

Parameters

bool $closePopup: A boolean indicating whether or not the popup should be closed before redirecting.

string $destination: The redirect destination.

File

src/Ajax/FancyLoginRedirectCommand.php, line 35

Class

FancyLoginRedirectCommand
Defines the redirect command.

Namespace

Drupal\fancy_login\Ajax

Code

public function __construct($closePopup, $destination) {
  $this->closePopup = $closePopup;
  $this->destination = $destination;
}