Commit ff99906c authored by catch's avatar catch
Browse files

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

(cherry picked from commit ebf0c951)
parent 4b40396f
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment