From 6436e3edb3ee12b6d84c6ac855c14a16b3c367a1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 11 Jan 2021 00:16:40 +0000 Subject: [PATCH] Generate a new block for related posts References #3 --- .../src/Plugin/Block/RelatedPostsBlock.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php diff --git a/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php b/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php new file mode 100644 index 0000000..94554e9 --- /dev/null +++ b/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php @@ -0,0 +1,24 @@ + $this->t('It works!'), + ]; + + return $build; + } + +}