function DataCommand::render
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::render()
- 8.9.x core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::render()
- 11.x core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::render()
Implements Drupal\Core\Ajax\CommandInterface:render().
Overrides CommandInterface::render
File
-
core/
lib/ Drupal/ Core/ Ajax/ DataCommand.php, line 63
Class
- DataCommand
- An AJAX command for implementing jQuery's data() method.
Namespace
Drupal\Core\AjaxCode
public function render() {
return [
'command' => 'data',
'selector' => $this->selector,
'name' => $this->name,
'value' => $this->value,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.