Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Ajax/BeforeCommand.php
- 9 core/lib/Drupal/Core/Ajax/BeforeCommand.php
Namespace
Drupal\Core\Ajax
File
core/lib/Drupal/Core/Ajax/BeforeCommand.php
View source
<?php
namespace Drupal\Core\Ajax;
class BeforeCommand extends InsertCommand {
public function render() {
return [
'command' => 'insert',
'method' => 'before',
'selector' => $this->selector,
'data' => $this
->getRenderedContent(),
'settings' => $this->settings,
];
}
}
Classes
Name |
Description |
BeforeCommand |
An AJAX command for calling the jQuery before() method. |