You are here

FancyLoginLoadFormCommand.php in Fancy Login 8.2

Same filename and directory in other branches
  1. 3.0.x src/Ajax/FancyLoginLoadFormCommand.php

File

src/Ajax/FancyLoginLoadFormCommand.php
View source
<?php

namespace Drupal\fancy_login\Ajax;

use Drupal\Core\Ajax\CommandInterface;

/**
 * Defines the load form ajax command.
 */
class FancyLoginLoadFormCommand implements CommandInterface {

  /**
   * The loaded form.
   *
   * @var array
   */
  protected $form;

  /**
   * Constructs a FancyLoginLoadFormCommand object.
   */
  public function __construct(array $form) {
    $this->form = $form;
  }

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

}

Classes

Namesort descending Description
FancyLoginLoadFormCommand Defines the load form ajax command.