Skip to content

Commit

Permalink
Update to Drupal 8.0-dev-2015-11-17. Commits through da81cd220, Tue N…
Browse files Browse the repository at this point in the history
…ov 17 15:53:49 2015 +0000, Issue #2617224 by Wim Leers: Move around/fix some documentation.
  • Loading branch information
Pantheon Automation authored and greg-1-anderson committed Nov 18, 2015
1 parent 4afb23b commit 7784f4c
Show file tree
Hide file tree
Showing 929 changed files with 20,255 additions and 5,761 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ Thumbs.db
# SASS #
##########
.sass-cache

# Things in the core directory that Drupal 8 commits in the repository.
!core/**/*.gz

3 changes: 0 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Set the default handler.
DirectoryIndex index.php index.html index.htm

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0+",
"require": {
"composer/installers": "^1.0.21",
"wikimedia/composer-merge-plugin": "^1.3.0"
"wikimedia/composer-merge-plugin": "~1.3"
},
"replace": {
"drupal/core": "~8.0"
Expand Down
222 changes: 100 additions & 122 deletions composer.lock

Large diffs are not rendered by default.

139 changes: 109 additions & 30 deletions core/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,69 @@
Drupal 8.0, xxxx-xx-xx (development version)
Drupal 8.0.x, xxxx-xx-xx (development version)
----------------------
- Added Twig as the default template engine and converted all .tpl.php templates
to .html.twig.
- Dramatically improved the front end:
* Made all built-in themes responsive.
* Added support for responsive images.
* Added Twig as the default template engine and converted all .tpl.php
templates and theme functions to .html.twig.
* Removed the PHPTemplate engine.
* Several large scale cleanups of the markup produced by Drupal.
* Added Classy as a base theme to maintain CSS classes and wrappers.
* Added Stable as the default base theme to maintain backwards compatibility
for core template and CSS changes, because templates and CSS outside
Stable can be improved in minor releases (8.1.0, 8.2.0 …).
* Redesigned several key elements of the Seven theme.
* Added support for HTML5 elements.
* Included the HTML5 Shiv library to support HTML5 elements in IE 8 and
below.
* Included Backbone.js and Underscore.js JavaScript frameworks.
* Updated to jQuery 2.1.4.
* Updated to jQuery UI 1.11.4.
* Removed jquery.bbq.
* Removed the Garland theme from core.
* Removed the Overlay module from core.
* Improved the asset library system to manage CSS and JavaScript files and
their dependencies. Allowing for smaller AJAX request payloads.
* jQuery is no longer loaded on all pages, only when another asset needs it.
* No JavaScript is loaded at all for anonymous users by default, for faster
page loads.
* Implemented SMACSS-style categorization for CSS files.
* Removed most support for Internet Explorer 8 and below.
* Added Modernizr for making styling changes based on browser support.
* All page template variables converted to blocks.
- Added tour module. Provides highly contextual tips for UI elements.
- Improved entity system.
* Added support for saving and deleting entities through the controller.
* Base entity fields (such as labels) support widgets, formatters and
translation.
* Form modes introduced, similar to display modes.
* Entities are now classed objects, implementing EntityInterface.
* Drupal now understands the concept of a "default" revision, tracked
independently from the latest revision, allowing for the creation of
drafts while the current revision stays published.
* All entity types, not just nodes, now have support for revisions.
- Replaced the core routing system with one built on the Symfony2 framework.
- Refactored routing system based on Symfony2 components.
- Reworked menu links, local actions, and local tasks based upon the new routing
system.
- Added plugin system to standardize implementation of several core APIs.
- Configuration:
* Added a centralized file-based configuration system.
* Allows module authors to provide configuration in a standard format.
* Implements functionality to get, set, add and remove configuration.
* Includes ability to override configuration values with language variants
and other runtime values.
- Added the CKEditor WYSIWYG editor. Provides a drag-and-drop configuration UI.
- Included the HTML5 Shiv library to support HTML5 elements in IE 8 and below.
* Supports configuration schema, dependencies, and validation to maintain
data-integrity between deployments and updates.
- Improved authoring experience:
* Added the CKEditor WYSIWYG editor. Clean markup guaranteed thanks to tight
integration with the filter system.
* Includes uploading, aligning and captioning of images.
* Correspondingly modernized the default text formats.
* Provides a drag-and-drop configuration UI, which automatically updates the
HTML filter settings, making configuring text formats trivial for typical
use cases.
* Added align and caption filters that can be applied to any element:
images, blockquotes, code snippets, videos…
* In-place editing of any entity: nodes, blocks…
- Included the following Symfony2 components:
* ClassLoader - PSR-0-compatible autoload routines.
* DependencyInjection - Flexible dependency injection container.
Expand All @@ -28,10 +73,13 @@ Drupal 8.0, xxxx-xx-xx (development version)
* Process - Allows for executing commands in a sub-process.
* Routing - Framework for mapping incoming requests to controller
information.
* Serialization - Serialize complex nested objects into JSON/XML etc.
* Validator - Ensure that an object is in a valid state based upon some
validation rules defined for it.
* Yaml - Parser for YAML files.
- Included the Assetic asset management framework for PHP.
- Included Backbone.js and Underscore.js JavaScript frameworks.
- Support added for making HTTP requests through a proxy server.
- Added routing component from Symfony CMF.
- Added Guzzle HTTP library.
- Added Zend Feed component.
- Removed modules from core.
* The following modules have been removed from core, because contributed
modules with similar functionality are available:
Expand All @@ -42,35 +90,30 @@ Drupal 8.0, xxxx-xx-xx (development version)
* Poll
* Profile
* Trigger
- Removed the Overlay module from core.
- Removed the Garland theme from core.
- Removed the Statistics module's accesslog functionality and reports from core.
- Removed XML-RPC functionality from core.
- Removed user signatures support from core.
- Removed backwards-compatibility with 'magic_quotes_gpc'/'magic_quotes_runtime'
PHP configuration settings. Both are required to be disabled.
- Universally Unique IDentifier (UUID):
* Support for generating and validating UUIDs.
- JavaScript changes:
* Updated to jQuery 2.1.0
* Updated to jQuery UI 1.10.2
* Removed jquery.bbq
- Tremendously improved language support all around.
* Great language improvements for users:
* Improved language selection with user preference detection in the
installer.
installer based on browser settings.
* The installer is presented in the user's native language.
* Moved base language support to Language module.
* Greatly simplified the interface for setting up languages.
* Improved browser language detection considerably.
* Language domain and path prefix configuraton simplified and centralized;
path prefix detection is now default.
* Language domain and path prefix configuration simplified and
centralized; path prefix detection is now default.
* Added HTML 5 language markup; language information added in markup in
several more places.
* Made it possible to assign external language codes to local languages.
* Introduced the possibility of an administration-specific language
preference for users.
* Language selection fallback language is now independently configurable
without needing to change the site default language.
* Simplified and added new features in interface translation:
* Made interface translation directly accessible from language list.
* Made interface translation directly accessible from the language list.
* Centralized interface translation import to one directory.
* Drupal can now be translated to English and English can be deleted.
* Much improved built-in translation interface.
Expand All @@ -79,6 +122,7 @@ Drupal 8.0, xxxx-xx-xx (development version)
be identified and protected from translation update overwrites.
* All Gettext files are now imported in chunks, better for low resource
environments.
* Automated import and update of translations in the installer and later.
* Improved content language support:
* Made it possible to assign language to taxonomy terms, vocabularies,
menu items, and files.
Expand Down Expand Up @@ -107,29 +151,64 @@ Drupal 8.0, xxxx-xx-xx (development version)
developers.
* Made it possible for users to have a preferred language separate from
their user entity language.
* The text formatter from t() is now available as format_string().
* The text formatter from t() is now available as FormattableMarkup.
* Added support for interface translation contexts in Drupal.t(),
Drupal.formatPlural() as well as routing, tabs, actions, and contextual
links.
Drupal.formatPlural() as well as routing, tabs, actions, shipped
menu items and contextual links.
* Removed textgroups support from interface translation in favor of
native configuration language support.
* Added configuration schema system to support generating translation
forms for any configuration.
* Reworked Gettext PO support to use pluggable read/write handlers.
* Added language select form element in the Form API.
- Added Email field type to core.
- Added Link field type to core.
- Added Phone number field type to core.
* Added a transliteration API. (Only used for machine names in core.)
- New field types added to core:
- Email
- Link
- Phone number
- Entity reference
- Date
- Comment (allows comment threads on entity types other than node).
- Added local image input filter, to enable secure image posting.
- Added Views and Views UI module to core.
- Added Entity Reference field type to core.
- Added Date field type to core.
- Added Views and Views UI module to core:
* Various core listings: /node, /admin/content/node, /admin/people etc. are
now served by views.
* REST API support built in.
* Rewrote caching integration for better performance.
- Custom blocks are now fieldable, revisionable, and translatable entities.
- An accessible modal API based on improvements made in collaboration with the
jQuery UI team and the Views team.
- Fieldable contact forms allowing site-builders to easily build custom forms
for soliciting feedback from users.
- Added a Web Services module package.
* Added a RESTful web services provider module.
* Added a serialization module using the Symfony serialization component.
* Added a Hypertext Application Language (HAL) serialization module.
* Added a HTTP Basic authentication provider module.
- Significant performance/scalability improvements:
* Cache tags, which allow content to be invalidated accurately and instantly,
including reverse proxies and CDNs.
* Cache contexts, which allow content to be cached correctly, and placeholdered
to improve cache hit rates.
* Cacheability bubbling, which allows strict tracking of assets and
cacheability throughout page rendering.
* Page caching has been factored out to its own module and is enabled by
default.
* Authenticated page caching has been added to core via the Dynamic Page Cache
module and is enabled by default.
* APCu, memory, and PHP file caching backends added to core, alongside support
for a chained, consistent cache backend to support correctly using fast
local cache implementations with multiple web servers.
- When using MySQL, the MyISAM engine is no longer supported.
- Testing improvements
* Added PHPUnit for proper unit testing, see
https://phpunit.de/manual/4.8/en/index.html so you can run tests via
your IDE.
* Added BrowserTestBase as an alternative to simpletest for browser
testing (JavaScript support to be included in the future)
* Added KernelTestBase to provide a fast API testing of integration of
different components
* Core branch nightly tests include PHP 5.5, 5.6, 7, sqlite and PostgreSQL.

Drupal 7.0, 2011-01-05
----------------------
Expand Down
1 change: 1 addition & 0 deletions core/MAINTAINERS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ Breakpoint module

CKEditor module
- Wim Leers 'Wim Leers' https://www.drupal.org/u/wim-leers
- Marek 'mlewand' Lewandowski https://www.drupal.org/u/mlewand

Color module
- ?
Expand Down
2 changes: 1 addition & 1 deletion core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"symfony/validator": "2.7.*",
"symfony/process": "2.7.*",
"symfony/yaml": "2.7.*",
"twig/twig": "^1.22.2",
"twig/twig": "^1.23.1",
"doctrine/common": "2.5.*",
"doctrine/annotations": "1.2.*",
"guzzlehttp/guzzle": "~6.1",
Expand Down
1 change: 0 additions & 1 deletion core/core.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ drupal.tabledrag:
misc/tabledrag.js: { weight: -1 }
dependencies:
- core/jquery
- core/modernizr
- core/drupal
- core/drupalSettings
- core/jquery.once
Expand Down
8 changes: 4 additions & 4 deletions core/core.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -949,14 +949,14 @@ services:
tags:
- { name: route_enhancer }
- { name: event_subscriber }
route_enhancer.form:
class: Drupal\Core\Routing\Enhancer\FormRouteEnhancer
tags:
- { name: route_enhancer }
route_enhancer.entity:
class: Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
tags:
- { name: route_enhancer, priority: 20 }
route_content_controller_subscriber:
class: Drupal\Core\EventSubscriber\ContentControllerSubscriber
tags:
- { name: event_subscriber }
route_special_attributes_subscriber:
class: Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber
tags:
Expand Down
12 changes: 10 additions & 2 deletions core/includes/errors.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ function error_displayable($error = NULL) {
* %line, severity_level, and backtrace. All the parameters are plain-text,
* with the exception of @message, which needs to be an HTML string, and
* backtrace, which is a standard PHP backtrace.
* @param $fatal
* TRUE if the error is fatal.
* @param bool $fatal
* TRUE for:
* - An exception is thrown and not caught by something else.
* - A recoverable fatal error, which is a fatal error.
* Non-recoverable fatal errors cannot be logged by Drupal.
*/
function _drupal_log_error($error, $fatal = FALSE) {
$is_installer = drupal_installation_attempted();
Expand Down Expand Up @@ -169,6 +172,11 @@ function _drupal_log_error($error, $fatal = FALSE) {
}
}

// Log fatal errors, so developers can find and debug them.
if ($fatal) {
error_log(sprintf('%s: %s in %s on line %d', $error['%type'], $error['@message'], $error['%file'], $error['%line']));
}

if (PHP_SAPI === 'cli') {
if ($fatal) {
// When called from CLI, simply output a plain text message.
Expand Down
3 changes: 3 additions & 0 deletions core/includes/install.core.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use Drupal\Core\Language\LanguageManager;
use Drupal\Core\Logger\LoggerChannelFactory;
use Drupal\Core\Site\Settings;
use Drupal\Core\StringTranslation\Translator\FileTranslation;
use Drupal\Core\StackMiddleware\ReverseProxyMiddleware;
use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Url;
Expand Down Expand Up @@ -403,6 +404,8 @@ function install_begin_request($class_loader, &$install_state) {
$kernel->setSitePath($site_path);
$kernel->boot();
$container = $kernel->getContainer();
// If Drupal is being installed behind a proxy, configure the request.
ReverseProxyMiddleware::setSettingsOnRequest($request, Settings::getInstance());

// Register the file translation service.
if (isset($GLOBALS['config']['locale.settings']['translation']['path'])) {
Expand Down
2 changes: 1 addition & 1 deletion core/includes/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ function drupal_common_theme() {
),
// From menu.inc.
'menu' => array(
'variables' => array('items' => array(), 'attributes' => array()),
'variables' => array('menu_name' => NULL, 'items' => array(), 'attributes' => array()),
),
'menu_local_task' => array(
'render element' => 'element',
Expand Down
14 changes: 8 additions & 6 deletions core/includes/theme.maintenance.inc
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,21 @@ function _drupal_maintenance_theme() {
$theme = $custom_theme;

// Find all our ancestor themes and put them in an array.
$base_theme = array();
// @todo This is just a workaround. Find a better way how to handle themes
// on maintenance pages, see https://www.drupal.org/node/2322619.
// This code is basically a duplicate of
// \Drupal\Core\Theme\ThemeInitialization::getActiveThemeByName.
$base_themes = [];
$ancestor = $theme;
while ($ancestor && isset($themes[$ancestor]->base_theme)) {
$base_theme[] = $themes[$themes[$ancestor]->base_theme];
$base_themes[] = $themes[$themes[$ancestor]->base_theme];
$ancestor = $themes[$ancestor]->base_theme;
if ($ancestor) {
// Ensure that the base theme is added.
// Ensure that the base theme is added and installed.
$theme_handler->addTheme($themes[$ancestor]);
}
}
// @todo This is just a workaround. Find a better way how to handle themes
// on maintenance pages, see https://www.drupal.org/node/2322619.
\Drupal::theme()->setActiveTheme($theme_init->getActiveTheme($themes[$custom_theme], array_reverse($base_theme)));
\Drupal::theme()->setActiveTheme($theme_init->getActiveTheme($themes[$custom_theme], $base_themes));
// Prime the theme registry.
Drupal::service('theme.registry');
}
Expand Down
Loading

0 comments on commit 7784f4c

Please sign in to comment.