Skip to content

Instantly share code, notes, and snippets.

@prasadshir
Created April 16, 2020 15:59
Show Gist options
  • Save prasadshir/40fb6e1ae1dfa025898ca7e2848d3df5 to your computer and use it in GitHub Desktop.
Save prasadshir/40fb6e1ae1dfa025898ca7e2848d3df5 to your computer and use it in GitHub Desktop.
FirstController.php
<?php
/**
* @file
* Contains \Drupal\mymodule\MyModuleController
*/
namespace Drupal\mymodule\Controller;
use Drupal\Core\Controller\ControllerBase;
class FirstController extends ControllerBase {
public function content(){
return [
'#type' => 'markup',
'#markup' => ('This is my first menu linked custom page'),
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment