Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
CONSOLE your DRUPAL 8 MODULE DEVELOPMENT
Things you need to know in Drupal 8 module development.
Contents:
• When we develop a module?
• Things to know before D8 module development?
• How do we develop, using console?
When we develop a module?
• Why we need to create a module?
• Is there any contributed module?
• Should we contribute back?
Things to know before D8 module
development?
• Hook
• Controller
• Services
• Dependency Injection
• Plugins
• Events
• En...
Hook and Controller
• hook_menu :- replaced by new systems for routing,
menu links, local tasks, actions and contextual
li...
Services
• Reusable methods/ functions
• Replaceable
Dependency Injection
• What? :- Passing explicit dependent object.
• Why? :- Not calling the service container every
time.
Plugins
• Different behaviours using common interface.
• Plugins can plug any where, runs completely
different.
• Examples...
Events
• Event Dispatcher
• Event Subscriber
• Creating Custom Event
Entities
• Config Entity
• Content Entity
How do we develop, using console?
Using Drupal Console:
• Creating Module
• Creating Block Plugin
• Creating Services
• Cr...
Console your Drupal 8 module development
Upcoming SlideShare
Loading in …5
×

Console your Drupal 8 module development

682 views

Published on

Drupal Console is a scaffolding tool built for Drupal 8 automatic code generation.

What is Drupal Console?

Why Drupal Console?

How to speed up your drupal 8 development using Drupal Console?

How to create a new console command?

How to create a custom module using Drupal Console?

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Console your Drupal 8 module development

  1. 1. CONSOLE your DRUPAL 8 MODULE DEVELOPMENT Things you need to know in Drupal 8 module development.
  2. 2. Contents: • When we develop a module? • Things to know before D8 module development? • How do we develop, using console?
  3. 3. When we develop a module? • Why we need to create a module? • Is there any contributed module? • Should we contribute back?
  4. 4. Things to know before D8 module development? • Hook • Controller • Services • Dependency Injection • Plugins • Events • Entities
  5. 5. Hook and Controller • hook_menu :- replaced by new systems for routing, menu links, local tasks, actions and contextual links • Controller:- Process the request and returns the output. (Simple collections of page or request call backs.)
  6. 6. Services • Reusable methods/ functions • Replaceable
  7. 7. Dependency Injection • What? :- Passing explicit dependent object. • Why? :- Not calling the service container every time.
  8. 8. Plugins • Different behaviours using common interface. • Plugins can plug any where, runs completely different. • Examples:- Blocks, Field Type, Field Widget, Field Formatter
  9. 9. Events • Event Dispatcher • Event Subscriber • Creating Custom Event
  10. 10. Entities • Config Entity • Content Entity
  11. 11. How do we develop, using console? Using Drupal Console: • Creating Module • Creating Block Plugin • Creating Services • Creating Config and Content Entity • Creating Event Subscriber • Creating Form • Creating Dummy users • Creating Dummy nodes • Creating Vocabularies • Creating Terms

×