Commit c5a84293 authored by czigor's avatar czigor Committed by bojanz

Issue #3038493 part II by czigor: Tests are failing on Drupal 8.7

parent b7518854
......@@ -113,7 +113,12 @@ class Log extends ContentEntityBase implements LogInterface {
* {@inheritdoc}
*/
public function getParams() {
return $this->get('params')->first()->getValue();
if (!$this->get('params')->isEmpty()) {
return $this->get('params')->first()->getValue();
}
else {
return [];
}
}
/**
......
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