function SortableTestTrait::sortableUpdate
Same name in other branches
- 9 core/tests/Drupal/FunctionalJavascriptTests/SortableTestTrait.php \Drupal\FunctionalJavascriptTests\SortableTestTrait::sortableUpdate()
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/SortableTestTrait.php \Drupal\FunctionalJavascriptTests\SortableTestTrait::sortableUpdate()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/SortableTestTrait.php \Drupal\FunctionalJavascriptTests\SortableTestTrait::sortableUpdate()
Define to provide any necessary callback following layout change.
Parameters
string $item: The HTML selector for the element to be moved.
string $from: The HTML selector for the previous container element.
null|string $to: The HTML selector for the target container.
2 calls to SortableTestTrait::sortableUpdate()
- SortableTestTrait::sortableAfter in core/
tests/ Drupal/ FunctionalJavascriptTests/ SortableTestTrait.php - Simulates a drag moving an element after its sibling in the same container.
- SortableTestTrait::sortableTo in core/
tests/ Drupal/ FunctionalJavascriptTests/ SortableTestTrait.php - Simulates a drag on an element from one container to another.
2 methods override SortableTestTrait::sortableUpdate()
- EntityReferenceWidgetTest::sortableUpdate in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ EntityReferenceWidgetTest.php - Define to provide any necessary callback following layout change.
- LayoutBuilderSortTrait::sortableUpdate in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderSortTrait.php - Define to provide any necessary callback following layout change.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ SortableTestTrait.php, line 28
Class
- SortableTestTrait
- Provides functions for simulating sort changes.
Namespace
Drupal\FunctionalJavascriptTestsCode
protected abstract function sortableUpdate($item, $from, $to = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.