An open API service indexing awesome lists of open source software.

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

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