protected function MoveBlockHelperTrait::findRowHandle in Layout Builder Restrictions 8.2
Finds the row handle for a block in the draggable table.
Parameters
string $block_label: The block label.
Return value
\Behat\Mink\Element\NodeElement The row handle element.
1 call to MoveBlockHelperTrait::findRowHandle()
- MoveBlockHelperTrait::moveBlockWithKeyboard in tests/
src/ Traits/ MoveBlockHelperTrait.php - Moves a block in the draggable table.
File
- tests/
src/ Traits/ MoveBlockHelperTrait.php, line 80
Class
- MoveBlockHelperTrait
- General-purpose methods for moving blocks in Layout Builder.
Namespace
Drupal\Tests\layout_builder_restrictions\TraitsCode
protected function findRowHandle($block_label) {
$assert_session = $this
->assertSession();
return $assert_session
->elementExists('css', "[data-drupal-selector=\"edit-components\"] td:contains(\"{$block_label}\") a.tabledrag-handle");
}