DataCommand
class DataCommand
An AJAX command for implementing jQuery's data() method.
This instructs the client to attach the name=value pair of data to the selector via jQuery's data cache.
This command is implemented by Drupal.AjaxCommands.prototype.data() defined in misc/ajax.js.
Hierarchy
- class \Drupal\Core\Ajax\DataCommand implements CommandInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/登录查看完整内容