Create a custom page with custom controller at /hello
that displays a title of ‘Create a custom page in drupal 8!’ and the following content: ‘Welcome to codimth.com !’
Add the following code to the codimth_controller.info.yml
file:
Add the following code to the codimth_controller.routing.yml
file:
Add the following code to the codimth_controller/src/Controller/CodimthController.php
file:
Now clear your Drupal 8 caches. and you should be able to see the new page.
I hope you found this article useful. let me know if you have any questions and I’ll be happy to answer them.