Commit d39e25de authored by catch's avatar catch
Browse files

Issue #3212354 by guilhermevp, Chi: AggregatorFeedBlock::build must always return array

(cherry picked from commit ebf0c951)
(cherry picked from commit ff99906c)
parent 03355b6e
Loading
Loading
Loading
Loading
+30 −29
Original line number Diff line number Diff line
@@ -127,7 +127,9 @@ public function blockSubmit($form, FormStateInterface $form_state) {
   */
  public function build() {
    // Load the selected feed.
    if ($feed = $this->feedStorage->load($this->configuration['feed'])) {
    if (!$feed = $this->feedStorage->load($this->configuration['feed'])) {
      return [];
    }
    $result = $this->itemStorage->getQuery()
      ->accessCheck(TRUE)
      ->condition('fid', $feed->id())
@@ -159,7 +161,6 @@ public function build() {
      return $build;
    }
  }
  }

  /**
   * {@inheritdoc}