diff -u b/core/modules/views/src/Plugin/views/field/Field.php b/core/modules/views/src/Plugin/views/field/Field.php --- b/core/modules/views/src/Plugin/views/field/Field.php +++ b/core/modules/views/src/Plugin/views/field/Field.php @@ -820,9 +820,10 @@ 'settings' => $this->options['settings'], 'label' => 'hidden', ]; - // Optional relationships may not provide an entity at all. So we can't use - // createEntityForGroupBy() for those rows. - if (($entity = $this->getEntity($values)) && ($entity = $this->createEntityForGroupBy($entity, $values))) { + // Optional relationships may not provide an entity at all. So we can't + // use createEntityForGroupBy() for those rows. + if ($entity = $this->getEntity($values)) { + $entity = $this->createEntityForGroupBy($entity, $values); // Some bundles might not have a specific field, in which case the faked // entity doesn't have it either. $build_list = isset($entity->{$this->definition['field_name']}) ? $entity->{$this->definition['field_name']}->view($display) : NULL;