From 95d644ad3ac140b86503e5f7c23709b49f134371 Mon Sep 17 00:00:00 2001 From: aziz-712 Date: Wed, 17 May 2023 20:51:25 +0100 Subject: [PATCH 1/2] work on version compatiblity --- hello_world.info.yml | 3 ++- hello_world.routing.yml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 hello_world.routing.yml diff --git a/hello_world.info.yml b/hello_world.info.yml index 450ca4f..93c50ca 100644 --- a/hello_world.info.yml +++ b/hello_world.info.yml @@ -3,4 +3,5 @@ description: Creates a page showing "Hello World". package: Custom type: module version: 1.0 -core: 8.x \ No newline at end of file +core: 8.x +core_version_requirement: ">=8" diff --git a/hello_world.routing.yml b/hello_world.routing.yml new file mode 100644 index 0000000..99c4a28 --- /dev/null +++ b/hello_world.routing.yml @@ -0,0 +1,7 @@ +hello_world.content: + path: "/hello" + defaults: + _controller: '\Drupal\hello_world\Controller\HelloController::content' + _title: "Hello World" + requirements: + _permission: "access content" From 8d01d1d851852e1fec5e7069b3a0a9de40062628 Mon Sep 17 00:00:00 2001 From: Ahmed Aziz ABBASSI <77698923+aziz-712@users.noreply.github.com> Date: Wed, 17 May 2023 21:58:34 +0100 Subject: [PATCH 2/2] We don't need this file as it is in the next step This file is in step: Add a routing file --- hello_world.routing.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 hello_world.routing.yml diff --git a/hello_world.routing.yml b/hello_world.routing.yml deleted file mode 100644 index 16a2abc..0000000 --- a/hello_world.routing.yml +++ /dev/null @@ -1,17 +0,0 @@ -skeleton -hello_world.content: - path: "/hello" - defaults: - _controller: '\Drupal\hello_world\Controller\HelloController::content' - _title: "Hello World" - requirements: - _permission: "access content" - -hello.content: - path: '/hello' - defaults: - _controller: '\Drupal\hello_world\Controller\HelloController::content' - _title: 'Hello World' - requirements: - _permission: 'access content' - master