public function FocusFirstCommand::render in Drupal 9
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- core/
lib/ Drupal/ Core/ Ajax/ FocusFirstCommand.php, line 44
Class
- FocusFirstCommand
- AJAX command for focusing an element.
Namespace
Drupal\Core\AjaxCode
public function render() {
return [
'command' => 'focusFirst',
'selector' => $this->selector,
];
}