class FancyLoginLoadFormCommand in Fancy Login 8.2
Same name and namespace in other branches
- 3.0.x src/Ajax/FancyLoginLoadFormCommand.php \Drupal\fancy_login\Ajax\FancyLoginLoadFormCommand
Defines the load form ajax command.
Hierarchy
- class \Drupal\fancy_login\Ajax\FancyLoginLoadFormCommand implements CommandInterface
Expanded class hierarchy of FancyLoginLoadFormCommand
1 file declares its use of FancyLoginLoadFormCommand
- FancyLoginController.php in src/
Controller/ FancyLoginController.php
File
- src/
Ajax/ FancyLoginLoadFormCommand.php, line 10
Namespace
Drupal\fancy_login\AjaxView source
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),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FancyLoginLoadFormCommand:: |
protected | property | The loaded form. | |
FancyLoginLoadFormCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
FancyLoginLoadFormCommand:: |
public | function | Constructs a FancyLoginLoadFormCommand object. |