Skip to content

Instantly share code, notes, and snippets.

@kevinquillen
Created July 12, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinquillen/123047e7740e7e0edbc1b8ad3fbc7823 to your computer and use it in GitHub Desktop.
Save kevinquillen/123047e7740e7e0edbc1b8ad3fbc7823 to your computer and use it in GitHub Desktop.
<?php
/**
* Class ResourceNotFoundController.
*/
class ResourceNotFoundController extends ControllerBase {
/**
* Display the Resource Not Found message.
*
* @return array
* Return page content.
*/
public function index() {
return [
'#type' => 'markup',
'#markup' => $this->t('Content located in (theme)/templates/page--resource-not-found.html.twig.')
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment