Introducing the Drupal 8Configuration System –  



Introducing the Drupal 8Configuration System –  

0 0


drupalcon-2014-cmi


On Github mtift / drupalcon-2014-cmi

Introducing the Drupal 8Configuration System

 

DrupalCon Austin     June 3, 2014     matthewtift.com

Matthew Tift

mtift

Senior Developer at Lullabot

Drupal 8 configuration system co-maintainter

Configuration Management

... for site builders

Expected Confusion Level

Configuration Management:

What is it?

Configuration Management

Quality

Identify Problems

Coordination

Code Management

Metadata

Consistency

Repeatability

Control

Verification

Documentation

DEV ➞ PROD

Configuration Management

Processfor establishing and maintaining consistency

Configuration

in Drupal 8

"Config" in Core

Drupal 7

"Configuration": 785

"Config": 2,414

Drupal 8

"Configuration": 5,540

"Config": 18,211

preconfigured

configurable

configurator

configured

configure

Configuration:

Types of Things

Configuration:

Views

Content Types

Image Styles

Forms

Settings

User Roles

Content:

Things

Content:

Article

Basic Page

Menu

User

Taxonomy

Site Builder

vs

Site Editor

That wastoo easy

SimpleConfiguration

vs

Configuration Entities

SimpleConfiguration:

Exactly one copy or version

Configuration Entity:

Creates zero or more items

Credit: Gábor Hojtsy

Simple Configuration

Configuration Entity

↕    

Content Entity

Confusion Check

Configuration:

Benefits

Benefit:

Eliminated 50 database tables

Benefit:

Reduced need for Features and Strongarm

Benefit:

Translatable

Three Items

Two Translatable

Benefit:

Swappable

Benefit:

API for Developers

Migrate in Core

Includes Configuration

Is it useful?

Is it valuable?

Idea

Mockup

Prototype

MVP

Product

Useful

Valuable

How DoesThis Work?

Module Config     User Interaction     Import

Active Storage

Export Config

JPEG Quality

admin/config/media/image-toolkit

Module Config

core/modules/system/config/install/system.image.gd.yml

Active Storage

Export Config

system.image.gd.yml

Drupal 7

JPEG Quality

File

system/image.gd.inc (Drupal 7)

Database

User Interface

admin/config/media/image-toolkit

Now What?

Consistent?

Repeatable?

Quality?

Diff?

Coordinated?

Metadata?

OtherDrupal 8 Data

Cron last run

Config? Content?

Other D8 Data

State System

Other D8 Data

Settings.php$config variable

Confusion Check

Configuration:

How do I use it?

DEV

PROD

Clone Your Site

You can only synchronize configuration between cloned instances of a site

JPEG Quality

Configuration Manager Module

Configuration Management Section

Export Config

Import Config

PROD Sync

View Differences

Import All

Synchronizing

Synchronization Complete

SaneJPEG Quality

Configuration Management:

How You Can Help

drupal8cmi.org

IRC: #drupal-cmi

What didyou think?

Evaluate this session

austin2014.drupal.org/schedule

Matthew Tift

Drupal.org: mtift

Web: matthewtift.com

Twitter: @matthewtift

Slide Deck: lb.cm/austin-cmi