Skip to content

hechoendrupal/ExtraModule

Repository files navigation

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


class DefaultController extends ControllerBase{
  //...
  /**
   * helloAction
   * @param  string $name 
   *
   * @Permission("access content")
   */
  public function helloAction($name) {
    return "Hello " . $name . "!";
  }
  //...
}

Call twig template like Symfony


{# hello.html.twig #}

{% extends "module_name::base.html.twig" %}

{% block hello_wrapper %}
  Hellos {{name}}
{% endblock %}

Roadmap

  • Template annotation

About

ExtraModule is a module for Drupal 8 to add some tools for developers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages