function FocusFirstCommand::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Ajax/FocusFirstCommand.php \Drupal\Core\Ajax\FocusFirstCommand::__construct()
- 11.x core/lib/Drupal/Core/Ajax/FocusFirstCommand.php \Drupal\Core\Ajax\FocusFirstCommand::__construct()
Constructs an FocusFirstCommand object.
Parameters
string $selector: The selector of the container with tabbable elements.
File
-
core/
lib/ Drupal/ Core/ Ajax/ FocusFirstCommand.php, line 37
Class
- FocusFirstCommand
- AJAX command for focusing an element.
Namespace
Drupal\Core\AjaxCode
public function __construct($selector) {
$this->selector = $selector;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.