Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -0,0 +1,4 @@
/**
* @file
* Test JS asset file for test_theme.theme.
*/

View file

@ -1,4 +1,6 @@
/**
* @file
* Test JS asset file for test_theme.theme.
*/
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/

View file

@ -5,4 +5,4 @@ namespace Drupal\test_theme;
/**
* Represents a random class, used to test if themes can provide classes.
*/
class ThemeClass { }
class ThemeClass {}

View file

@ -0,0 +1,2 @@
{# Output for Theme API test #}
Template provided by theme is registered by module.

View file

@ -0,0 +1,2 @@
css_class: {{ css_class }}<br>
attributes: {{- attributes -}}<br>

View file

@ -14,6 +14,7 @@ description: 'Theme for testing the theme system'
version: VERSION
base theme: classy
core: 8.x
logo: images/logo2.svg
stylesheets-remove:
- '@system/css/js.module.css'
libraries:

View file

@ -53,7 +53,7 @@ function test_theme_theme_test_alter_alter(&$data) {
* Implements hook_theme_suggestions_alter().
*/
function test_theme_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
drupal_set_message(__FUNCTION__ . '() executed.');
\Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
// Theme alter hooks run after module alter hooks, so add this theme
// suggestion to the beginning of the array so that the suggestion added by
// the theme_suggestions_test module can be picked up when that module is
@ -67,7 +67,7 @@ function test_theme_theme_suggestions_alter(array &$suggestions, array $variable
* Implements hook_theme_suggestions_HOOK_alter().
*/
function test_theme_theme_suggestions_theme_test_suggestions_alter(array &$suggestions, array $variables) {
drupal_set_message(__FUNCTION__ . '() executed.');
\Drupal::messenger()->addStatus(__FUNCTION__ . '() executed.');
// Theme alter hooks run after module alter hooks, so add this theme
// suggestion to the beginning of the array so that the suggestion added by
// the theme_suggestions_test module can be picked up when that module is

View file

@ -5,4 +5,3 @@ version: VERSION
base theme: classy
core: 8.x
libraries:

View file

@ -0,0 +1,12 @@
# Schema for the configuration files of the Test theme settings.
test_theme_settings.settings:
type: theme_settings
label: 'Test theme settings'
mapping:
custom_logo:
type: sequence
label: 'Custom logo'
sequence:
type: integer
label: 'fids'

View file

@ -0,0 +1,6 @@
name: 'Theme test theme-settings.php'
type: theme
description: 'Test theme that extends theme settings options via theme-settings.php file'
version: VERSION
core: 8.x
base theme: false

View file

@ -0,0 +1,39 @@
<?php
/**
* @file
* Test to ensure theme compatibility with managed files.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\file\Entity\File;
/**
* Implements hook_form_system_theme_settings_alter().
*/
function test_theme_settings_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
$form['custom_logo'] = [
'#type' => 'managed_file',
'#title' => t('Secondary logo.'),
'#default_value' => theme_get_setting('custom_logo'),
'#progress_indicator' => 'bar',
'#progress_message' => t('Please wait...'),
'#upload_location' => 'public://test',
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
],
];
$form['#submit'][] = 'test_theme_settings_form_system_theme_settings_submit';
}
/**
* Test theme form settings submission handler.
*/
function test_theme_settings_form_system_theme_settings_submit(&$form, FormStateInterface $form_state) {
if ($file_id = $form_state->getValue(['custom_logo', '0'])) {
$file = File::load($file_id);
$file->setPermanent();
$file->save();
}
}

View file

@ -0,0 +1,3 @@
test_theme_settings_features.settings:
type: theme_settings
label: 'Test theme settings'

View file

@ -0,0 +1,8 @@
name: Test features
type: theme
core: 8.x
description: 'Test theme to test theme settings with limited features.'
features:
- node_user_picture
- comment_user_picture
- comment_user_verification

View file

@ -0,0 +1,12 @@
# Schema for the configuration files of the Test theme theme.
test_theme_theme.settings:
type: theme_settings
label: 'Test theme settings'
mapping:
custom_logo:
type: sequence
label: 'Custom logo'
sequence:
type: integer
label: 'fids'

View file

@ -0,0 +1,6 @@
name: 'Theme test theme.theme file'
type: theme
description: 'Test theme that extends theme settings options via theme.theme file'
version: VERSION
core: 8.x
base theme: false

View file

@ -0,0 +1,40 @@
<?php
/**
* @file
* Test to ensure theme compatibility with managed files.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\file\Entity\File;
/**
* Implements hook_form_system_theme_settings_alter().
*/
function test_theme_theme_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
$form['custom_logo'] = [
'#type' => 'managed_file',
'#title' => t('Secondary logo.'),
'#default_value' => theme_get_setting('custom_logo'),
'#progress_indicator' => 'bar',
'#progress_message' => t('Please wait...'),
'#upload_location' => 'public://test',
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
],
];
$form['#submit'][] = 'test_theme_theme_form_system_theme_settings_submit';
}
/**
* Test theme form settings submission handler.
*/
function test_theme_theme_form_system_theme_settings_submit(&$form, FormStateInterface $form_state) {
if ($file_id = $form_state->getValue(['custom_logo', '0'])) {
$file = File::load($file_id);
$file->setPermanent();
$file->save();
}
}