class EntityReferenceFilterInsertNoWrapCommand in Views Reference Filter 8
AJAX command for calling the jQuery html() method.
The 'EntityReferenceFilterInsertNoWrapCommand/html' command instructs the client to use jQuery's html() method to set the HTML content of each element matched by the given selector while leaving the outer tags intact.
This command is implemented by Drupal.AjaxCommands.prototype.EntityReferenceFilterInsertNoWrapCommand() defined in js/entityreference_filter.js.
Hierarchy
- class \Drupal\Core\Ajax\InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTrait
- class \Drupal\Core\Ajax\HtmlCommand
- class \Drupal\entityreference_filter\Ajax\EntityReferenceFilterInsertNoWrapCommand
- class \Drupal\Core\Ajax\HtmlCommand
Expanded class hierarchy of EntityReferenceFilterInsertNoWrapCommand
See also
1 file declares its use of EntityReferenceFilterInsertNoWrapCommand
File
- src/
Ajax/ EntityReferenceFilterInsertNoWrapCommand.php, line 23
Namespace
Drupal\entityreference_filter\AjaxView source
class EntityReferenceFilterInsertNoWrapCommand extends HtmlCommand {
/**
* Implements Drupal\Core\Ajax\CommandInterface:render().
*/
public function render() {
return [
'command' => 'entityReferenceFilterInsertNoWrapCommand',
'method' => 'html',
'selector' => $this->selector,
'data' => $this
->getRenderedContent(),
'settings' => $this->settings,
];
}
}
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. | |
EntityReferenceFilterInsertNoWrapCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides HtmlCommand:: |
|
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. | |
InsertCommand:: |
public | function | Constructs an InsertCommand object. |