You are here

public function FancyLoginLoadFormCommand::render in Fancy Login 3.0.x

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

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

Overrides CommandInterface::render

File

src/Ajax/FancyLoginLoadFormCommand.php, line 29

Class

FancyLoginLoadFormCommand
Defines the load form ajax command.

Namespace

Drupal\fancy_login\Ajax

Code

public function render() {
  return [
    'command' => 'fancyLoginLoadFormCommand',
    'form' => render($this->form),
  ];
}