function RestripeCommand::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/RestripeCommand.php \Drupal\Core\Ajax\RestripeCommand::__construct()
  2. 10 core/lib/Drupal/Core/Ajax/RestripeCommand.php \Drupal\Core\Ajax\RestripeCommand::__construct()
  3. 11.x core/lib/Drupal/Core/Ajax/RestripeCommand.php \Drupal\Core\Ajax\RestripeCommand::__construct()

Constructs a RestripeCommand object.

Parameters

string $selector: A CSS selector for the table to be restriped.

File

core/lib/Drupal/Core/Ajax/RestripeCommand.php, line 34

Class

RestripeCommand
AJAX command for resetting the striping on a table.

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.