Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Temoor’s picture

Status: Active » Needs review
FileSize
8.08 KB

Status: Needs review » Needs work

The last submitted patch, 1: drupal8-entity_system-block-load-2321593-1.patch, failed testing.

Temoor’s picture

Removed redundant parameter from loadMultiple call in MigrateBlockTest::testBlockMigration().

Temoor’s picture

Status: Needs work » Needs review

Triggering bot

dawehner’s picture

+++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockTest.php
@@ -82,7 +83,7 @@ public function setUp() {
     /** @var $blocks \Drupal\block\BlockInterface[] */

with this we can get rid of this documentation bit.

Temoor’s picture

Removed documentation as described in #5

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Cool!

m1r1k’s picture

Issue tags: +#ams2014contest
alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/block/src/BlockListBuilder.php
@@ -18,6 +18,7 @@
+use Drupal\block\Entity\Block;

@@ -399,7 +400,7 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
-    $entities = entity_load_multiple('block', array_keys($form_state->getValue('blocks')));
+    $entities = Block::loadMultiple(array_keys($form_state->getValue('blocks')));

This should use the entity storage directly - which is already available ($this->storage)

Temoor’s picture

Status: Needs work » Needs review
FileSize
7.86 KB
1.09 KB

Thanks!

m1r1k’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -

Last comment was fixed. RBTC

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5e6c455 and pushed to 8.0.x. Thanks!

  • alexpott committed 5e6c455 on 8.0.x
    Issue #2321593 by Temoor: Replace all instances of block_load(),...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.