drupal 8: what's new? anton shubkin

30
Drupal 8: What’s new?

Upload: adci-llc

Post on 06-May-2015

877 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Drupal 8: What's new? Anton Shubkin

Drupal 8: What’s new?

Page 2: Drupal 8: What's new? Anton Shubkin

https://drupal.org/project/drupal

drupal 8.0-alpha10(March 19, 2014)

Page 3: Drupal 8: What's new? Anton Shubkin

Documentation

https://api.drupal.org/api/drupal/8https://drupal.org/developing/api/8

@todo write this

Page 4: Drupal 8: What's new? Anton Shubkin

Mobile FirstD8D7

Page 5: Drupal 8: What's new? Anton Shubkin

Mobile FirstD8D7

Page 6: Drupal 8: What's new? Anton Shubkin

CKEditor is in core

Page 7: Drupal 8: What's new? Anton Shubkin

Inline editing

Page 8: Drupal 8: What's new? Anton Shubkin

Blocks are entities

Page 9: Drupal 8: What's new? Anton Shubkin

Several instances of the same block

Page 10: Drupal 8: What's new? Anton Shubkin

Form displays

Page 11: Drupal 8: What's new? Anton Shubkin

Views is in core

Page 12: Drupal 8: What's new? Anton Shubkin

Views is in core

Page 13: Drupal 8: What's new? Anton Shubkin

Views is in core

Page 14: Drupal 8: What's new? Anton Shubkin

Some VBO functionality is in core

Page 15: Drupal 8: What's new? Anton Shubkin

New modules● Breakpoint● Migrate● Responsive

Image● Tour● Datetime● Entity Reference● Link● Telephone

and others...

Page 16: Drupal 8: What's new? Anton Shubkin

Removed modules

● Blog https://drupal.org/project/blog● Dashboard● OpenID● Overlay● PHP filter https://drupal.org/project/php● Poll https://drupal.org/project/poll

Page 17: Drupal 8: What's new? Anton Shubkin

TWIG and HTML5 <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix">

<?php if ($breadcrumb): ?>

<div id="breadcrumb"><?php print $breadcrumb; ?></div>

<?php endif; ?>

<?php if ($page['sidebar_first']): ?>

<div id="sidebar-first" class="column sidebar"><div class="section">

<?php print render($page['sidebar_first']); ?>

</div></div> <!-- /.section, /#sidebar-first -->

<?php endif; ?>

<div id="content" class="column"><div class="section">

<?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>

<a id="main-content"></a>

<?php print render($title_prefix); ?>

<?php if ($title): ?>

<h1 class="title" id="page-title">

<?php print $title; ?>

</h1>

<?php endif; ?>

D7

Page 18: Drupal 8: What's new? Anton Shubkin

TWIG and HTML5 <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix">

{{ breadcrumb }}

<main id="content" class="column" role="main"><section class="section">

{% if page.highlighted %}<div id="highlighted">{{ page.highlighted }}</div>{% endif %}

<a id="main-content"></a>

{{ title_prefix }}

{% if title %}

<h1 class="title" id="page-title">

{{ title }}

</h1>

{% endif %}

{{ title_suffix }}

{% if tabs %}

<nav class="tabs" role="navigation">

{{ tabs }}

</nav>

{% endif %}

{{ page.help }}

D8

Page 19: Drupal 8: What's new? Anton Shubkin

IE 9+

Page 20: Drupal 8: What's new? Anton Shubkin

OOP

Page 21: Drupal 8: What's new? Anton Shubkin

PSR-0\Drupal\node\Form\NodeDeleteForm

/core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php

Page 22: Drupal 8: What's new? Anton Shubkin

YAMLnode.info.yml

name: Nodetype: moduledescription: 'Allows content to be submitted to the site and displayed on pages.'package: Coreversion: VERSIONcore: 8.xconfigure: node.overview_typesdependencies: - text

Page 23: Drupal 8: What's new? Anton Shubkin

YAMLnode.info.yml

node.contextual_links.yml

node.libraries.yml

node.local_tasks.yml

node.routing.yml

node.services.yml...

Page 24: Drupal 8: What's new? Anton Shubkin

Configuration Managementnode.type.article.yml

type: articlename: Articledescription: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'help: ''has_title: truetitle_label: Titlesettings: node: preview: 1 options: status: true promote: true sticky: false revision: false submitted: truestatus: truelangcode: en

Page 25: Drupal 8: What's new? Anton Shubkin

Configuration Management

Page 26: Drupal 8: What's new? Anton Shubkin

Symfony componentsHttpFoundation and HttpKernel

Routing

EventDispatcher

DependencyInjection

ClassLoader

Yaml

Twig

Serializer

Page 27: Drupal 8: What's new? Anton Shubkin

Composer: Dependency manager

Guzzle: HTTP Client

Assetic: Asset manager (CSS and JS aggregation)

PHPUnit: Testing

PSR/Log: Consistent logging from components and Drupal

Other components

Page 28: Drupal 8: What's new? Anton Shubkin

This article was inspired by other nice articles:

Drupal 8: What You Need to Know by Wayne Eakerhttp://wayneeaker.com/blog/2013/10/12/drupal-8-what-you-need-know

Tutorial: Drupal 8 Site Building preview - Less is more by Heather Jameshttp://www.acquia.com/blog/tutorial-drupal-8-site-building-preview-less-more

From Not-Invented-Here to Proudly-Found-Elsewhere: A Drupal 8 Storyhttps://prague2013.drupal.org/session/not-invented-here-proudly-found-elsewhere-

drupal-8-story

Drupal Community Documentationhttps://drupal.org/developing/api/8

And many others...

Page 30: Drupal 8: What's new? Anton Shubkin

Thank you!