Tasks Completed Create a site localhost site with Drupal 8 with given tasks http://localhost/drupal8/ userid/password : admin/admin@123 Task 1 created a custom module called custom. * Implemented hook_form_FORM-ID_alter, This function will Add a New field in Site information page * Site Api key value stores in /custom/custom/config/install/custom.settings.yml file for demo, check below URL http://localhost/drupal8/admin/config/system/site-information Task 2 created a new menu as /nodecheck/{key}/{nid} to return json object * created a controller to match siteapikey and nodeid , * if Key doesn't match it will respond access denaid * if key matches but node id is wrong, it will respond as 'not a node' * if key and node both matches, it will respond json object for url demo, check below URL http://localhost/drupal8/nodecheck/testkey/1 Conclusion Refered drupal.org and stackoverflow.com Spended 3.5 hours to complete these tasks Background Information Wh...
Comments
Post a Comment