https://github.com/hechoendrupal/extramodule
ExtraModule is a module for Drupal 8 to add some tools for developers
https://github.com/hechoendrupal/extramodule
Last synced: 12 months ago
JSON representation
ExtraModule is a module for Drupal 8 to add some tools for developers
- Host: GitHub
- URL: https://github.com/hechoendrupal/extramodule
- Owner: hechoendrupal
- Created: 2013-12-29T02:09:38.000Z (over 12 years ago)
- Default Branch: 8.x-1.x
- Last Pushed: 2014-06-22T06:47:27.000Z (almost 12 years ago)
- Last Synced: 2025-06-07T04:08:23.140Z (about 1 year ago)
- Language: PHP
- Homepage: http://hechoendrupal.com
- Size: 143 KB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ExtraModule
===========
ExtraModule is a module for Drupal 8 to add some tools for developers
Usage
-----
* Download and enable module
* Use your awesome powers
#### @Permission Annotation
----------------------
```php
class DefaultController extends ControllerBase{
//...
/**
* helloAction
* @param string $name
*
* @Permission("access content")
*/
public function helloAction($name) {
return "Hello " . $name . "!";
}
//...
}
```
#### Call twig template like Symfony
-----------------------------
```django
{# hello.html.twig #}
{% extends "module_name::base.html.twig" %}
{% block hello_wrapper %}
Hellos {{name}}
{% endblock %}
```
Roadmap
=======
* Template annotation