Skip to main content
Home Low Code Generator

Main navigation

  • Home

User account menu

  • Log in

Get your service from the container

Open generator

What is?

https://www.drupal.org/docs/drupal-apis/services-and-dependency-injecti…

Dependency injection is preferred method for accessing and using services.

How to use?

One option is to use service container in your existing controller (or create new) to access services.

Used template: https://github.com/Chi-teck/drupal-code-generator/blob/master/templates…

Technology
Drupal

Search

Tutorials

  • Query the database for entities
  • Create a custom field type
  • Create configuration form
  • Create basic form
  • Create custom field formatter
  • Create custom field widget
  • Create custom service
  • Define permissions for module
  • Create custom page using a controller
  • Add javascript and stylesheet to module
Powered by Drupal

Footer menu

  • Contact