Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Access\CronAccessCheck.
*/
namespace Drupal\system\Access;
use Drupal\Core\Access\AccessResult;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Access\DbUpdateAccessCheck.
*/
namespace Drupal\system\Access;
use Drupal\Core\Routing\Access\AccessInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\ActionConfigEntityInterface.
*/
namespace Drupal\system;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\AdminController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\Controller\ControllerBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\BatchController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\DbUpdateController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\Cache\CacheBackendInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\EntityAutocompleteController.
*/
namespace Drupal\system\Controller;
use Drupal\Component\Utility\Crypt;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\Http4xxController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\Controller\ControllerBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\SystemController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\Cache\CacheableMetadata;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\SystemInfoController.
*/
namespace Drupal\system\Controller;
use Symfony\Component\DependencyInjection\ContainerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\ThemeController.
*/
namespace Drupal\system\Controller;
use Drupal\Core\Config\ConfigFactoryInterface;
@ -12,7 +7,6 @@ use Drupal\Core\Config\PreExistingConfigException;
use Drupal\Core\Config\UnmetDependenciesException;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Routing\RouteBuilderInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Controller\TimezoneController.
*/
namespace Drupal\system\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\CronController.
*/
namespace Drupal\system;
use Drupal\Core\Controller\ControllerBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\DateFormatAccessControlHandler.
*/
namespace Drupal\system;
use Drupal\Core\Access\AccessResult;
@ -30,10 +25,10 @@ class DateFormatAccessControlHandler extends EntityAccessControlHandler {
// Locked date formats cannot be updated or deleted.
elseif (in_array($operation, array('update', 'delete'))) {
if ($entity->isLocked()) {
return AccessResult::forbidden()->cacheUntilEntityChanges($entity);
return AccessResult::forbidden()->addCacheableDependency($entity);
}
else {
return parent::checkAccess($entity, $operation, $account)->cacheUntilEntityChanges($entity);
return parent::checkAccess($entity, $operation, $account)->addCacheableDependency($entity);
}
}

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\DateFormatListBuilder.
*/
namespace Drupal\system;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Entity\Action.
*/
namespace Drupal\system\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Entity\Menu.
*/
namespace Drupal\system\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\EventSubscriber\AdminRouteSubscriber.
*/
namespace Drupal\system\EventSubscriber;
use Drupal\Core\Routing\RouteSubscriberBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\EventSubscriber\ConfigCacheTag.
*/
namespace Drupal\system\EventSubscriber;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\FileDownloadController.
*/
namespace Drupal\system;
use Drupal\Core\Controller\ControllerBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\CronForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
@ -15,7 +10,6 @@ use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
* Configure cron settings for this site.
@ -127,7 +121,7 @@ class CronForm extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
// Run cron manually from Cron form.
if ($this->cron->run()) {
drupal_set_message(t('Cron run successfully.'));
drupal_set_message(t('Cron ran successfully.'));
}
else {
drupal_set_message(t('Cron run failed.'), 'error');

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\DateFormatAddForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Form\FormStateInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\DateFormatDeleteForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Datetime\DateFormatterInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\DateFormatEditForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Form\FormStateInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\DateFormatFormBase.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
@ -104,7 +99,7 @@ abstract class DateFormatFormBase extends EntityForm {
'#type' => 'textfield',
'#title' => t('Format string'),
'#maxlength' => 100,
'#description' => $this->t('A user-defined date format. See the <a href=":url">PHP manual</a> for available options.', array(':url' => 'http://php.net/manual/function.date.php')),
'#description' => $this->t('A user-defined date format. See the <a href="http://php.net/manual/function.date.php">PHP manual</a> for available options.'),
'#required' => TRUE,
'#attributes' => [
'data-drupal-date-formatter' => 'source',

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\FileSystemForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ImageToolkitForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\LoggingForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Form\ConfigFormBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ModulesListConfirmForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\PreExistingConfigException;
@ -124,16 +119,7 @@ class ModulesListConfirmForm extends ConfirmFormBase {
return $this->redirect('system.modules_list');
}
$items = array();
// Display a list of required modules that have to be installed as well but
// were not manually selected.
foreach ($this->modules['dependencies'] as $module => $dependencies) {
$items[] = $this->formatPlural(count($dependencies), 'You must enable the @required module to install @module.', 'You must enable the @required modules to install @module.', array(
'@module' => $this->modules['install'][$module],
'@required' => implode(', ', $dependencies),
));
}
$items = $this->buildMessageList();
$form['message'] = array(
'#theme' => 'item_list',
'#items' => $items,
@ -142,6 +128,31 @@ class ModulesListConfirmForm extends ConfirmFormBase {
return parent::buildForm($form, $form_state);
}
/**
* Builds the message list for the confirmation form.
*
* @return \Drupal\Component\Render\MarkupInterface[]
* Array of markup for the list of messages on the form.
*
* @see \Drupal\system\Form\ModulesListForm::buildModuleList()
*/
protected function buildMessageList() {
$items = [];
if (!empty($this->modules['dependencies'])) {
// Display a list of required modules that have to be installed as well
// but were not manually selected.
foreach ($this->modules['dependencies'] as $module => $dependencies) {
$items[] = $this->formatPlural(count($dependencies), 'You must enable the @required module to install @module.', 'You must enable the @required modules to install @module.', [
'@module' => $this->modules['install'][$module],
// It is safe to implode this because module names are not translated
// markup and so will not be double-escaped.
'@required' => implode(', ', $dependencies),
]);
}
}
return $items;
}
/**
* {@inheritdoc}
*/

View file

@ -0,0 +1,37 @@
<?php
namespace Drupal\system\Form;
/**
* Builds a confirmation form for enabling experimental modules.
*/
class ModulesListExperimentalConfirmForm extends ModulesListConfirmForm {
/**
* {@inheritdoc}
*/
public function getQuestion() {
return $this->t('Are you sure you wish to enable experimental modules?');
}
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'system_modules_experimental_confirm_form';
}
/**
* {@inheritdoc}
*/
protected function buildMessageList() {
drupal_set_message($this->t('<a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', [':url' => 'https://www.drupal.org/core/experimental']), 'warning');
$items = parent::buildMessageList();
// Add the list of experimental modules after any other messages.
$items[] = $this->t('The following modules are experimental: @modules', ['@modules' => implode(', ', array_values($this->modules['experimental']))]);
return $items;
}
}

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ModulesListForm.
*/
namespace Drupal\system\Form;
use Drupal\Component\Utility\Unicode;
@ -368,6 +363,7 @@ class ModulesListForm extends FormBase {
$modules = array(
'install' => array(),
'dependencies' => array(),
'experimental' => [],
);
// Required modules have to be installed.
@ -380,10 +376,14 @@ class ModulesListForm extends FormBase {
}
// First, build a list of all modules that were selected.
foreach ($packages as $items) {
foreach ($packages as $package => $items) {
foreach ($items as $name => $checkbox) {
if ($checkbox['enable'] && !$this->moduleHandler->moduleExists($name)) {
$modules['install'][$name] = $data[$name]->info['name'];
// Identify experimental modules.
if ($package == 'Core (Experimental)') {
$modules['experimental'][$name] = $data[$name]->info['name'];
}
}
}
}
@ -394,6 +394,11 @@ class ModulesListForm extends FormBase {
if (!isset($modules['install'][$dependency]) && !$this->moduleHandler->moduleExists($dependency)) {
$modules['dependencies'][$module][$dependency] = $data[$dependency]->info['name'];
$modules['install'][$dependency] = $data[$dependency]->info['name'];
// Identify experimental modules.
if ($data[$dependency]->info['package'] == 'Core (Experimental)') {
$modules['experimental'][$dependency] = $data[$dependency]->info['name'];
}
}
}
}
@ -423,16 +428,16 @@ class ModulesListForm extends FormBase {
// Retrieve a list of modules to install and their dependencies.
$modules = $this->buildModuleList($form_state);
// Check if we have to install any dependencies. If there is one or more
// dependencies that are not installed yet, redirect to the confirmation
// form.
if (!empty($modules['dependencies']) || !empty($modules['missing'])) {
// Redirect to a confirmation form if needed.
if (!empty($modules['experimental']) || !empty($modules['dependencies'])) {
$route_name = !empty($modules['experimental']) ? 'system.modules_list_experimental_confirm' : 'system.modules_list_confirm';
// Write the list of changed module states into a key value store.
$account = $this->currentUser()->id();
$this->keyValueExpirable->setWithExpire($account, $modules, 60);
// Redirect to the confirmation form.
$form_state->setRedirect('system.modules_list_confirm');
$form_state->setRedirect($route_name);
// We can exit here because at least one modules has dependencies
// which we have to prompt the user for in a confirmation form.

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ModulesUninstallConfirmForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ModulesUninstallForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Extension\ModuleHandlerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\PerformanceForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Asset\AssetCollectionOptimizerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\RegionalForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\RssFeedsForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Form\ConfigFormBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\SiteInformationForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\SiteMaintenanceModeForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ThemeAdminForm.
*/
namespace Drupal\system\Form;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Form\ThemeSettingsForm.
*/
namespace Drupal\system\Form;
use Drupal\Core\Extension\ThemeHandlerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\MachineNameController.
*/
namespace Drupal\system;
use Drupal\Component\Transliteration\TransliterationInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\MenuAccessControlHandler.
*/
namespace Drupal\system;
use Drupal\Core\Access\AccessResult;
@ -29,10 +24,10 @@ class MenuAccessControlHandler extends EntityAccessControlHandler {
// Locked menus could not be deleted.
elseif ($operation == 'delete') {
if ($entity->isLocked()) {
return AccessResult::forbidden()->cacheUntilEntityChanges($entity);
return AccessResult::forbidden()->addCacheableDependency($entity);
}
else {
return parent::checkAccess($entity, $operation, $account)->cacheUntilEntityChanges($entity);
return parent::checkAccess($entity, $operation, $account)->addCacheableDependency($entity);
}
}

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\MenuInterface.
*/
namespace Drupal\system;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\PathBasedBreadcrumbBuilder.
*/
namespace Drupal\system;
use Drupal\Component\Utility\Unicode;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\PathProcessor\PathProcessorFiles.
*/
namespace Drupal\system\PathProcessor;
use Drupal\Core\PathProcessor\InboundPathProcessorInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\PhpStorage\MockPhpStorage.
*/
namespace Drupal\system\PhpStorage;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Archiver\Tar.
*/
namespace Drupal\system\Plugin\Archiver;
use Drupal\Core\Archiver\Tar as BaseTar;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Archiver\Zip.
*/
namespace Drupal\system\Plugin\Archiver;
use Drupal\Core\Archiver\Zip as BaseZip;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemBrandingBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemBreadcrumbBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemMainBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemMenuBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemMessagesBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Block\SystemPoweredByBlock.
*/
namespace Drupal\system\Plugin\Block;
use Drupal\Core\Block\BlockBase;
@ -19,6 +14,13 @@ use Drupal\Core\Block\BlockBase;
*/
class SystemPoweredByBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return ['label_display' => FALSE];
}
/**
* {@inheritdoc}
*/

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Condition\CurrentThemeCondition.
*/
namespace Drupal\system\Plugin\Condition;
use Drupal\Core\Condition\ConditionPluginBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Condition\RequestPath.
*/
namespace Drupal\system\Plugin\Condition;
use Drupal\Component\Utility\Unicode;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Derivative\SystemMenuBlock.
*/
namespace Drupal\system\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\Derivative\ThemeLocalTask.
*/
namespace Drupal\system\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.
*/
namespace Drupal\system\Plugin\ImageToolkit;
use Drupal\Component\Utility\Color;
@ -53,7 +48,7 @@ class GDToolkit extends ImageToolkitBase {
*
* @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::parseFile()
* @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::setResource()
* @see http://php.net/manual/en/function.getimagesize.php
* @see http://php.net/manual/function.getimagesize.php
*/
protected $preLoadInfo = NULL;
@ -378,7 +373,7 @@ class GDToolkit extends ImageToolkitBase {
// Check for filter and rotate support.
if (!function_exists('imagefilter') || !function_exists('imagerotate')) {
$requirements['version']['severity'] = REQUIREMENT_WARNING;
$requirements['version']['description'] = t('The GD Library for PHP is enabled, but was compiled without support for functions used by the rotate and desaturate effects. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See <a href=":url">the PHP manual</a>.', array(':url' => 'http://www.php.net/manual/book.image.php'));
$requirements['version']['description'] = t('The GD Library for PHP is enabled, but was compiled without support for functions used by the rotate and desaturate effects. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See <a href="http://php.net/manual/book.image.php">the PHP manual</a>.');
}
return $requirements;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Convert.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\CreateNew.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
use Drupal\Component\Utility\Color;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Crop.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Desaturate.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\GDImageToolkitOperationBase.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
use Drupal\Core\ImageToolkit\ImageToolkitOperationBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Resize.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Rotate.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
use Drupal\Component\Utility\Color;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\Scale.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\ImageToolkit\Operation\gd\ScaleAndCrop.
*/
namespace Drupal\system\Plugin\ImageToolkit\Operation\gd;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\migrate\destination\EntityDateFormat.
*/
namespace Drupal\system\Plugin\migrate\destination;
use Drupal\Core\Entity\EntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\migrate\process\d6\SystemUpdate7000.
*/
namespace Drupal\system\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\migrate\process\d6\TimeZone.
*/
namespace Drupal\system\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\migrate\source\Menu.
*/
namespace Drupal\system\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Plugin\views\field\BulkForm.
*/
namespace Drupal\system\Plugin\views\field;
use Drupal\Core\Cache\CacheableDependencyInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\SystemConfigSubscriber.
*/
namespace Drupal\system;
use Drupal\Core\Config\ConfigCrudEvent;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\system\SystemManager.
*/
namespace Drupal\system;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\SystemRequirements.
*/
namespace Drupal\system;
/**

View file

@ -1,14 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Action\ActionUnitTest.
*/
namespace Drupal\system\Tests\Action;
use Drupal\simpletest\KernelTestBase;
use Drupal\Core\Action\ActionInterface;
use Drupal\system\Entity\Action;
use Drupal\user\RoleInterface;
/**
@ -80,7 +76,7 @@ class ActionUnitTest extends KernelTestBase {
*/
public function testDependencies() {
// Create a new action that depends on a user role.
$action = entity_create('action', array(
$action = Action::create(array(
'id' => 'user_add_role_action.' . RoleInterface::ANONYMOUS_ID,
'type' => 'user',
'label' => t('Add the anonymous role to the selected users'),

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\AjaxFormCacheTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\EventSubscriber\MainContentViewSubscriber;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\AjaxFormPageCacheTest.
*/
namespace Drupal\system\Tests\Ajax;
/**

View file

@ -1,14 +1,7 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\AjaxInGroupTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\Ajax\DataCommand;
/**
* Tests that form elements in groups work correctly with AJAX.
*

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\AjaxTestBase.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\simpletest\WebTestBase;
@ -56,7 +51,7 @@ abstract class AjaxTestBase extends WebTestBase {
// If the command has additional data that we're not testing for, do not
// consider that a failure. Also, == instead of ===, because we don't
// require the key/value pairs to be in any particular order
// (http://www.php.net/manual/language.operators.array.php).
// (http://php.net/manual/language.operators.array.php).
if (array_intersect_key($command, $needle) == $needle) {
$found = TRUE;
break;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\CommandsTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\Ajax\AddCssCommand;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\DialogTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\EventSubscriber\MainContentViewSubscriber;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\ElementValidationTest.
*/
namespace Drupal\system\Tests\Ajax;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\FormValuesTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\Ajax\DataCommand;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\FrameworkTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\Ajax\AddCssCommand;
@ -198,7 +193,7 @@ class FrameworkTest extends AjaxTestBase {
* Tests that overridden CSS files are not added during lazy load.
*/
public function testLazyLoadOverriddenCSS() {
// The test theme overrides system.module.css without an implementation,
// The test theme overrides js.module.css without an implementation,
// thereby removing it.
\Drupal::service('theme_handler')->install(array('test_theme'));
$this->config('system.theme')
@ -214,6 +209,6 @@ class FrameworkTest extends AjaxTestBase {
// information about the file; we only really care about whether it appears
// in a LINK or STYLE tag, for which Drupal always adds a query string for
// cache control.
$this->assertNoText('system.module.css?', 'Ajax lazy loading does not add overridden CSS files.');
$this->assertNoText('js.module.css?', 'Ajax lazy loading does not add overridden CSS files.');
}
}

View file

@ -1,13 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Ajax\MultiFormTest.
*/
namespace Drupal\system\Tests\Ajax;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
/**
* Tests that AJAX-enabled forms work when multiple instances of the same form
@ -31,17 +28,17 @@ class MultiFormTest extends AjaxTestBase {
// Create a multi-valued field for 'page' nodes to use for Ajax testing.
$field_name = 'field_ajax_test';
entity_create('field_storage_config', array(
FieldStorageConfig::create(array(
'entity_type' => 'node',
'field_name' => $field_name,
'type' => 'text',
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
))->save();
entity_create('field_config', array(
FieldConfig::create([
'field_name' => $field_name,
'entity_type' => 'node',
'bundle' => 'page',
))->save();
])->save();
entity_get_form_display('node', 'page', 'default')
->setComponent($field_name, array('type' => 'text_textfield'))
->save();

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Asset\LibraryDiscoveryIntegrationTest.
*/
namespace Drupal\system\Tests\Asset;
use Drupal\Core\Asset\Exception\InvalidLibrariesExtendSpecificationException;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Asset\ResolvedLibraryDefinitionsFilesMatchTest.
*/
namespace Drupal\system\Tests\Asset;
use Drupal\simpletest\KernelTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Batch\PageTest.
*/
namespace Drupal\system\Tests\Batch;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Batch\ProcessingTest.
*/
namespace Drupal\system\Tests\Batch;
use Drupal\Core\Url;

View file

@ -1,11 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Block\SystemMenuBlockTest.
*/
namespace Drupal\system\Tests\Block;
use Drupal\system\Entity\Menu;
use Drupal\block\Entity\Block;
use Drupal\Core\Render\Element;
use Drupal\simpletest\KernelTestBase;
use Drupal\system\Tests\Routing\MockRouteProvider;
@ -85,7 +83,6 @@ class SystemMenuBlockTest extends KernelTestBase {
parent::setUp();
$this->installSchema('system', 'sequences');
$this->installEntitySchema('user');
$this->installSchema('system', array('router'));
$this->installEntitySchema('menu_link_content');
$account = User::create([
@ -118,7 +115,7 @@ class SystemMenuBlockTest extends KernelTestBase {
$menu_name = 'mock';
$label = $this->randomMachineName(16);
$this->menu = entity_create('menu', array(
$this->menu = Menu::create(array(
'id' => $menu_name,
'label' => $label,
'description' => 'Description text',
@ -155,7 +152,7 @@ class SystemMenuBlockTest extends KernelTestBase {
*/
public function testSystemMenuBlockConfigDependencies() {
$block = entity_create('block', array(
$block = Block::create(array(
'plugin' => 'system_menu_block:' . $this->menu->id(),
'region' => 'footer',
'id' => 'machinename',

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Bootstrap\DrupalSetMessageTest.
*/
namespace Drupal\system\Tests\Bootstrap;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Bootstrap\ErrorContainer.
*/
namespace Drupal\system\Tests\Bootstrap;
use Drupal\Core\DependencyInjection\Container;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Bootstrap\ExceptionContainer.
*/
namespace Drupal\system\Tests\Bootstrap;
use Drupal\Core\DependencyInjection\Container;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Bootstrap\GetFilenameUnitTest.
*/
namespace Drupal\system\Tests\Bootstrap;
use Drupal\simpletest\KernelTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Bootstrap\ResettableStaticUnitTest.
*/
namespace Drupal\system\Tests\Bootstrap;
use Drupal\simpletest\KernelTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Cache\ApcuBackendUnitTest.
*/
namespace Drupal\system\Tests\Cache;
use Drupal\Core\Cache\Apcu4Backend;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait.
*/
namespace Drupal\system\Tests\Cache;
use Drupal\Core\Cache\Cache;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\system\Tests\Cache\BackendChainUnitTest.
*/
namespace Drupal\system\Tests\Cache;
use Drupal\Core\Cache\BackendChain;

Some files were not shown because too many files have changed in this diff Show more