Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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