Last active
July 20, 2016 02:42
-
-
Save xtfer/49ff89ae3be666dcfd05 to your computer and use it in GitHub Desktop.
Ghost:PageController example
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 an example PageController. | |
*/ | |
namespace Drupal\ghost_examples\Page; | |
use Drupal\ghost\Page\PageController; | |
use Drupal\ghost\Page\PageControllerInterface; | |
/** | |
* Class ExampleController | |
* | |
* @package Drupal\page_controller\Example | |
*/ | |
class PageControllerExample extends PageController implements PageControllerInterface { | |
/** | |
* Example view callback. | |
*/ | |
public function myPageControllerViewCallback($arg1, $arg2) { | |
// Do something with $args. | |
return 'Some output'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment