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
Configuration Management:
What is it?
Configuration Management
Quality
Identify Problems
Coordination
Code Management
Metadata
Consistency
Repeatability
Control
Verification
Documentation
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:
Article
Basic Page
Menu
User
Taxonomy
Site Builder
vs
Site Editor
SimpleConfiguration
vs
Configuration Entities
SimpleConfiguration:
Exactly one copy or version
Configuration Entity:
Creates zero or more items
Simple Configuration
↕
Configuration Entity
↕
Content Entity
Benefit:
Eliminated 50 database tables
Benefit:
Reduced need for Features and Strongarm
Benefit:
API for Developers
Migrate in Core
Includes Configuration
Is it useful?
Is it valuable?
Idea
↓
Mockup
↓
Prototype
↓
MVP
↓
Product
↓
Useful
↓
Valuable
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
Export Config
system.image.gd.yml
File
system/image.gd.inc (Drupal 7)
User Interface
admin/config/media/image-toolkit
Now What?
Consistent?
Repeatable?
Quality?
Diff?
Coordinated?
Metadata?
Cron last run
Config? Content?
Other D8 Data
State System
Other D8 Data
Settings.php$config variable
Configuration:
How do I use it?
Clone Your Site
You can only synchronize configuration between cloned instances of a site
Configuration Manager Module
Configuration Management Section
Configuration Management:
How You Can Help
IRC: #drupal-cmi
What didyou think?
Evaluate this session
Matthew Tift
Drupal.org: mtift