Skip to content
Snippets Groups Projects

3415221 - Add 404 response

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -5,6 +5,7 @@ namespace Drupal\module_instructions\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Extension\ExtensionPathResolver;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Base controller for the 'module instructions' module.
@@ -63,7 +64,7 @@ class ModuleInstructionsController extends ControllerBase {
];
}
return [];
throw new NotFoundHttpException();
}
}
Loading