what we need to know to create custom modules in drupal 8

12
What we need to know to create custom modules in Drupal 8 Oleksandr Ivanchenko - @alexsergivan

Upload: alexander-ivanchenko

Post on 30-Apr-2015

44 views

Category:

Software


0 download

DESCRIPTION

- main folders structure - Symfony components in Drupal 8 - class autoloading standard - plugin system

TRANSCRIPT

Page 1: What we need to know to create custom modules in Drupal 8

What we need to know to create custom modules in Drupal 8

Oleksandr Ivanchenko - @alexsergivan

Page 2: What we need to know to create custom modules in Drupal 8
Page 3: What we need to know to create custom modules in Drupal 8

Main folders structure

Page 4: What we need to know to create custom modules in Drupal 8

.info.yml

Page 5: What we need to know to create custom modules in Drupal 8

.routing.yml

Page 6: What we need to know to create custom modules in Drupal 8

PSR-4 autoloading standard

Page 7: What we need to know to create custom modules in Drupal 8

DefaultController.php

Page 8: What we need to know to create custom modules in Drupal 8

Plugin system

“The D8 plugin system provides a set of guidelines and reusable code components to allow developers to expose pluggable components within their code and (as needed) support managing these components through the user interface.” drupal.org

Plugin systems examples:- Blocks- Field types- Field widget- Field formatters- Image effects- Input filter- CKEditor buttons- Entity types

Page 9: What we need to know to create custom modules in Drupal 8

Block plugin example

Page 10: What we need to know to create custom modules in Drupal 8

Drupal 8 forms

Page 11: What we need to know to create custom modules in Drupal 8

Add js

Page 12: What we need to know to create custom modules in Drupal 8

https://github.com/hechoendrupal/DrupalAppConsole

Drupal 8 Console scaffolding module generator