function 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.