abstract protected function SortableTestTrait::sortableUpdate in Drupal 8
Same name and namespace in other branches
- 9 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()
- CKEditorAdminSortTrait::sortableUpdate in core/
modules/ ckeditor/ tests/ src/ Traits/ CKEditorAdminSortTrait.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 26
Class
- SortableTestTrait
- Provides functions for simulating sort changes.
Namespace
Drupal\FunctionalJavascriptTestsCode
protected abstract function sortableUpdate($item, $from, $to = NULL);