From 0b4c648ac610b808ce2445ae17aaebbd52b798e1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 14 Nov 2020 10:02:52 +0000 Subject: [PATCH] 5c: Return the node label --- web/modules/custom/my_module/src/Entity/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/modules/custom/my_module/src/Entity/Post.php b/web/modules/custom/my_module/src/Entity/Post.php index b3cc15b..5cd63da 100644 --- a/web/modules/custom/my_module/src/Entity/Post.php +++ b/web/modules/custom/my_module/src/Entity/Post.php @@ -13,7 +13,7 @@ class Post { } public function getTitle(): string { - return ''; + return $this->node->label(); } }