Please follow this tutorial… Please follow this tutorial to create a page then you can create using this code Create a new module http://drupal8.ovh/en/tutoriels/5/create-a-simple-module-for-drupal-8-step-2-create-simple-page Reply