Created
April 16, 2020 15:59
-
-
Save prasadshir/40fb6e1ae1dfa025898ca7e2848d3df5 to your computer and use it in GitHub Desktop.
FirstController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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