Skip to content

Instantly share code, notes, and snippets.

@AkshayKalose
Created January 9, 2016 19:25
Show Gist options
  • Save AkshayKalose/28b9d8d5bde754ebcd02 to your computer and use it in GitHub Desktop.
Save AkshayKalose/28b9d8d5bde754ebcd02 to your computer and use it in GitHub Desktop.
Drupal 8 - Hello World Module
name: Hello World
type: module
description: Say Hello World
package: Custom
core: 8.x
hello_world:
path: /hello/world
defaults:
_controller: Drupal\hello_world\Controller\HelloWorldController::hello
requirements:
_permission: 'access content'
<?php
namespace Drupal\hello_world\Controller;
class HelloWorldController {
public function hello() {
return array(
'#title' => 'Hello World!',
'#markup' => 'Here is some content.',
);
}
}
@rajatkumar0312
Copy link

I have to create a custom module for an event section with the following features:
a. The ability for Admin to create Event and Event Categories.
b. Front end – List all events, grouped by category.
c. The ability to subscribe to the event. All event subscribers should be stored in DB and
listed to the Admin.

I have created a module which create a custom content type names Event Detail + a txonomy Event Categories

Can i have your whatsapp number?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment