public function HiddenFieldSelector::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector::__construct()
- 10 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector::__construct()
File
- core/
tests/ Drupal/ Tests/ HiddenFieldSelector.php, line 17
Class
- HiddenFieldSelector
- Extends PartialNamedSelector to allow retrieval of hidden fields.
Namespace
Drupal\TestsCode
public function __construct() {
$xpath = ".//input[%lowercaseType% = 'hidden' and (%idOrNameMatch% or %valueMatch%)]";
$this
->registerNamedXpath('hidden_field', $xpath);
parent::__construct();
}