function FocusFirstCommand::__construct

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Ajax/FocusFirstCommand.php \Drupal\Core\Ajax\FocusFirstCommand::__construct()
  2. 10 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\Ajax

Code

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.