function MultipleValueWidgetTest::getItemValuesInDomOrder
Same name and namespace in other branches
- main core/modules/field/tests/src/FunctionalJavascript/MultipleValueWidgetTest.php \Drupal\Tests\field\FunctionalJavascript\MultipleValueWidgetTest::getItemValuesInDomOrder()
Returns the values of the widget items as they are ordered in the DOM.
This matches what the user sees.
Return value
string[] The item values.
File
-
core/
modules/ field/ tests/ src/ FunctionalJavascript/ MultipleValueWidgetTest.php, line 293
Class
- MultipleValueWidgetTest
- Tests widget form for a multiple value field.
Namespace
Drupal\Tests\field\FunctionalJavascriptCode
protected function getItemValuesInDomOrder() : array {
$values = [];
foreach ($this->getSession()
->getPage()
->findAll('css', 'tr.draggable input[name$="[value]"]') as $input) {
$values[] = $input->getValue();
}
return $values;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.