I have a module named some_module
.
This is my some_module.routing.yml
:
some_module.index:
path: '/this/is/the/path'
defaults:
_title: 'Some Title'
_controller: '\Drupal\some_module\Controller\SomeController::index'
requirements:
_permission: 'access content'
This is my SomeController.php
:
namespace Drupal\some_module\Controller;
use Drupal\Core\Controller\ControllerBase;
class SomeController extends ControllerBase {
public function index()
{
return [
'#theme' => 'some_template',
];
}
When I go to /this/is/the/path
in my browser. It's showing my theme's header and footer. How can I customize header and footer when I access /this/is/the/path
?