FancyLoginLoadFormCommand.php in Fancy Login 3.0.x
Same filename and directory in other branches
Namespace
Drupal\fancy_login\AjaxFile
src/Ajax/FancyLoginLoadFormCommand.phpView 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
Name | Description |
---|---|
FancyLoginLoadFormCommand | Defines the load form ajax command. |