Skip to content

Commit 035164a

Browse files
committed
71
1 parent 8c51f49 commit 035164a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

core/modules/layout_builder/src/Form/MoveBlockForm.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Drupal\layout_builder\Form;
44

55
use Drupal\Core\Ajax\AjaxFormHelperTrait;
6-
use Drupal\Core\DependencyInjection\ClassResolverInterface;
76
use Drupal\Core\Form\FormBase;
87
use Drupal\Core\Form\FormStateInterface;
98
use Drupal\layout_builder\Controller\LayoutRebuildTrait;
@@ -60,21 +59,17 @@ class MoveBlockForm extends FormBase {
6059
*
6160
* @param \Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layout_tempstore_repository
6261
* The layout tempstore.
63-
* @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
64-
* The class resolver.
6562
*/
66-
public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, ClassResolverInterface $class_resolver) {
63+
public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository) {
6764
$this->layoutTempStore = $layout_tempstore_repository;
68-
$this->classResolver = $class_resolver;
6965
}
7066

7167
/**
7268
* {@inheritdoc}
7369
*/
7470
public static function create(ContainerInterface $container) {
7571
return new static(
76-
$container->get('layout_builder.tempstore_repository'),
77-
$container->get('class_resolver')
72+
$container->get('layout_builder.tempstore_repository')
7873
);
7974
}
8075

@@ -86,7 +81,7 @@ public function getFormId() {
8681
}
8782

8883
/**
89-
* Builds block move form.
84+
* Builds move block form.
9085
*
9186
* @param array $form
9287
* An associative array containing the structure of the form.

core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testMoveBlock() {
119119
'content',
120120
$expected_block_order
121121
);
122-
$this->clickLink('Save Layout');
122+
$page->pressButton('Save layout');
123123
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '#edit-manage-layout'));
124124
$this->clickLink('Manage layout');
125125
$this->assertRegionBlocksOrder(
@@ -151,7 +151,7 @@ public function testMoveBlock() {
151151
'.block-extra-field-blocknodebundle-with-section-fieldlinks',
152152
]
153153
);
154-
$this->clickLink('Save Layout');
154+
$page->pressButton('Save layout');
155155
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '#edit-manage-layout'));
156156
$this->clickLink('Manage layout');
157157
$this->assertRegionBlocksOrder(
@@ -178,7 +178,7 @@ public function testMoveBlock() {
178178
* Asserts the correct block labels appear in the draggable tables.
179179
*
180180
* @param string[] $expected_block_labels
181-
* The expected block lables.
181+
* The expected block labels.
182182
*/
183183
protected function assertBlockTable(array $expected_block_labels) {
184184
$page = $this->getSession()->getPage();

0 commit comments

Comments
 (0)