class UltimenuHtmlCommand in Ultimenu 8.2
Overrides core HtmlCommand.
Hierarchy
- class \Drupal\Core\Ajax\InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTrait
- class \Drupal\Core\Ajax\HtmlCommand
- class \Drupal\ultimenu\Ajax\UltimenuHtmlCommand
- class \Drupal\Core\Ajax\HtmlCommand
Expanded class hierarchy of UltimenuHtmlCommand
1 file declares its use of UltimenuHtmlCommand
- UltimenuController.php in src/
Controller/ UltimenuController.php
File
- src/
Ajax/ UltimenuHtmlCommand.php, line 12
Namespace
Drupal\ultimenu\AjaxView source
class UltimenuHtmlCommand extends HtmlCommand {
/**
* The caller for the method to reduce deep checks, to deal with AJAX errors.
*
* @var string
*/
protected $caller;
/**
* Overrides an HtmlCommand object.
*/
public function __construct($selector, $content, array $settings = NULL, $caller = 'region') {
parent::__construct($selector, $content, $settings);
$this->caller = $caller;
}
/**
* Implements Drupal\Core\Ajax\CommandInterface:render().
*/
public function render() {
return [
'ultimenu' => $this->caller,
] + parent::render();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommandWithAttachedAssetsTrait:: |
protected | property | The attached assets for this Ajax command. | |
CommandWithAttachedAssetsTrait:: |
public | function | Gets the attached assets. | |
CommandWithAttachedAssetsTrait:: |
protected | function | Processes the content for output. | |
InsertCommand:: |
protected | property | The content for the matched element(s). | |
InsertCommand:: |
protected | property | A CSS selector string. | |
InsertCommand:: |
protected | property | A settings array to be passed to any attached JavaScript behavior. | |
UltimenuHtmlCommand:: |
protected | property | The caller for the method to reduce deep checks, to deal with AJAX errors. | |
UltimenuHtmlCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides HtmlCommand:: |
|
UltimenuHtmlCommand:: |
public | function |
Overrides an HtmlCommand object. Overrides InsertCommand:: |