brisbane drupal meetup - 2016 mar - build module in drupal 8

20
Build Drupal 8 Module 08 March 2016 Drupal Brisbane meetup

Upload: vladimir-roudakov

Post on 15-Feb-2017

350 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Build Drupal 8 Module

08 March 2016Drupal Brisbane meetup

Page 2: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

TOC

- Types of modules

- Build Simple Drupal 8 module

- …

- Events update

Page 3: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Build a module

Page 4: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Types

- profile

- Theme

- module

Page 5: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Simple module

- Create content

- Export configuration

- Sanitise configuration

- Add required configuration to the module

Page 6: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Create content

- Content type: event

- Fields: Body, Date

Page 7: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Export Conf

- Manually:

Configuration management

- Using drush:

drush cex

Page 8: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module: Export conf

The features module enables the capture and

management of features in Drupal.

https://www.drupal.org/project/features

Page 9: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module: Export conf

Configuration Development provides

automated import and export of configuration

between the active configuration storage and

exported modules.

https://www.drupal.org/project/config_devel

Page 10: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module: Export conf

Configuration Update Manager allows you

to see the differences between the

configuration items provided by the current

and installed configuration versions

https://www.drupal.org/project/config_update

Page 11: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module: Export conf

Configuration Synchronizer: Provides

methods for safely importing site

configuration from updated modules and

themes.

https://www.drupal.org/project/config_sync

Page 12: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module

- Create event.info.yml in docroot/modules/event

Page 13: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Module

- Copy configuration files to

docroot/modules/event/config/install

Page 14: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
Page 15: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Events

Page 16: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Drupal in a day

- 8-9 Apr 2016

- https://www.drupal.org/global-training-days

- Unis?

- Byron bay Drupal Camp?

Page 17: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

DrupalSouth 16 Update

- Q1, Surfers paradise

- 27-28 October 2016

- 14-Mar: Call for sponsors

- 01-Apr: Early bird sales

- 01-may: call for papers

- http://goldcoast2016.drupal.org.au/

Page 18: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

Local conferences

- PHP Australia: Sydney (14-15 Apr 2016)

http://www.phpconference.com.au/

- JS Conf: Melbourne (01 Dec 2016)

http://jsconf.com.au/

Page 19: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

DrupalConS

- US 16: New Orleans (09-13 May 2016)

https://events.drupal.org/neworleans2016

- EU16: Dublin (26-30 Sep 2016)

https://events.drupal.org/dublin2016

Page 20: Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8

QUESTIONS?

@tesdev

http://www.slideshare.net/VladimirAus