diff --git a/core/modules/block/src/BlockListBuilder.php b/core/modules/block/src/BlockListBuilder.php index 985169d..5df2be9 100644 --- a/core/modules/block/src/BlockListBuilder.php +++ b/core/modules/block/src/BlockListBuilder.php @@ -18,7 +18,6 @@ use Drupal\Core\Form\FormStateInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; -use Drupal\block\Entity\Block; /** * Defines a class to build a listing of block entities. @@ -400,7 +399,7 @@ public function validateForm(array &$form, FormStateInterface $form_state) { * Form submission handler for the main block administration form. */ public function submitForm(array &$form, FormStateInterface $form_state) { - $entities = Block::loadMultiple(array_keys($form_state->getValue('blocks'))); + $entities = $this->storage->loadMultiple(array_keys($form_state->getValue('blocks'))); foreach ($entities as $entity_id => $entity) { $entity_values = $form_state->getValue(array('blocks', $entity_id)); $entity->set('weight', $entity_values['weight']);