decoupling drupal modules...decoupling drupal modules into php libraries bojan zivanovic coding and...

Post on 19-Jul-2020

12 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Decoupling Drupal modules into PHP libraries

Bojan Zivanovic

Coding and Development

Commerce Development Lead @ Commerce Guys

Bojan Zivanovic (bojanz)

Views Bulk Operations, Inline Entity Form

Commerce GuysParis | London | Ann Arbor, MI

Creators of Drupal Commerce and Platform.sh

4 YEARS SINCE THE FIRST RELEASE...

And now we start from scratch

Re-evaluating our problem space

Libraries first

Influenced/Infiltrated

More to come

Why?■ Re-examine your problem space.

■ Get additional exposure.

■ Validate your implementation

■ Get development/maintenance help.

■ Allow for backports.

The (not so) hidden cost

The anatomy of a library

Data model - The interfaces

Data model - The default class

Data model - Traits

Data model - Collections

Data model - Repository

Services

Tests (PHPUnit)

Tips & Tricks

Translatable strings

Pluggable implementations

Know when to stop

Drupal integration

Composer

Composer, part II

https://bojanz.wordpress.com/2015/09/18/d8-composer-definitive-intro/

Entity types

Library ideasWhich problems to tackle

Hard problems

Boring problems

“Nobody cares about your CartInterface"– Me

Are you saving me time?

Spreading the drop

Questions?

Sprint: Friday

https://www.flickr.com/photos/amazeelabs/9965814443/in/faves-38914559@N03/

Sprint with the Community on Friday.

We have tasks for every skillset.

Mentors are available for new contributors.

An optional Friday morning workshop for first-time sprinters will help you get set up.

Follow @drupalmentoring.

top related