Skip to content

Instantly share code, notes, and snippets.

@xtfer
Last active July 20, 2016 02:42
Show Gist options
  • Save xtfer/49ff89ae3be666dcfd05 to your computer and use it in GitHub Desktop.
Save xtfer/49ff89ae3be666dcfd05 to your computer and use it in GitHub Desktop.
Ghost:PageController example
<?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