function FocusFirstCommand::render

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Ajax/FocusFirstCommand.php \Drupal\Core\Ajax\FocusFirstCommand::render()
  2. 11.x core/lib/Drupal/Core/Ajax/FocusFirstCommand.php \Drupal\Core\Ajax\FocusFirstCommand::render()

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/FocusFirstCommand.php, line 44

Class

FocusFirstCommand
AJAX command for focusing an element.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    return [
        'command' => 'focusFirst',
        'selector' => $this->selector,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.