Loading src/ContentTemplateListBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class ContentTemplateListBuilder extends EntityListBuilder { 'entity.node.canonical', ['node' => $entity->get('field_source')->target_id] ); $row['category'] = $entity->get('field_category')->isEmpty() ? $this->t('Uncategorized') : $entity->get('field_category')->entity->label(); $row['category'] = $entity->get('field_category')->entity ? $entity->get('field_category')->entity->label() : $this->t('Uncategorized'); return $row + parent::buildRow($entity); } Loading Loading
src/ContentTemplateListBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ class ContentTemplateListBuilder extends EntityListBuilder { 'entity.node.canonical', ['node' => $entity->get('field_source')->target_id] ); $row['category'] = $entity->get('field_category')->isEmpty() ? $this->t('Uncategorized') : $entity->get('field_category')->entity->label(); $row['category'] = $entity->get('field_category')->entity ? $entity->get('field_category')->entity->label() : $this->t('Uncategorized'); return $row + parent::buildRow($entity); } Loading