Created
January 9, 2016 19:25
-
-
Save AkshayKalose/28b9d8d5bde754ebcd02 to your computer and use it in GitHub Desktop.
Drupal 8 - Hello World Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hello World | |
type: module | |
description: Say Hello World | |
package: Custom | |
core: 8.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello_world: | |
path: /hello/world | |
defaults: | |
_controller: Drupal\hello_world\Controller\HelloWorldController::hello | |
requirements: | |
_permission: 'access content' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\hello_world\Controller; | |
class HelloWorldController { | |
public function hello() { | |
return array( | |
'#title' => 'Hello World!', | |
'#markup' => 'Here is some content.', | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?