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

@ -5,10 +5,8 @@
* Allows administrators to attach custom fields to fieldable types.
*/
use Drupal\Component\Utility\Html;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Entity\EntityViewModeInterface;
use Drupal\Core\Entity\EntityFormModeInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Access\FormModeAccessCheck.
*/
namespace Drupal\field_ui\Access;
use Drupal\Core\Access\AccessResult;
@ -78,7 +73,7 @@ class FormModeAccessCheck implements AccessInterface {
}
if ($form_mode_name != 'default' && $entity_display) {
$access->cacheUntilEntityChanges($entity_display);
$access->addCacheableDependency($entity_display);
}
if ($visibility) {

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Access\ViewModeAccessCheck.
*/
namespace Drupal\field_ui\Access;
use Drupal\Core\Access\AccessResult;
@ -78,7 +73,7 @@ class ViewModeAccessCheck implements AccessInterface {
}
if ($view_mode_name != 'default' && $entity_display) {
$access->cacheUntilEntityChanges($entity_display);
$access->addCacheableDependency($entity_display);
}
if ($visibility) {

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Controller\FieldConfigListController.
*/
namespace Drupal\field_ui\Controller;
use Drupal\Core\Entity\Controller\EntityListController;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Element\FieldUiTable.
*/
namespace Drupal\field_ui\Element;
use Drupal\Component\Utility\Html;

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\FieldConfigListBuilder.
*/
namespace Drupal\field_ui;
use Drupal\Component\Utility\Html;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\FieldUI.
*/
namespace Drupal\field_ui;
use Drupal\Component\Utility\UrlHelper;

View file

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

View file

@ -1,15 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityDisplayFormBase.
*/
namespace Drupal\field_ui\Form;
use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\Component\Plugin\PluginManagerBase;
use Drupal\Component\Utility\Html;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityWithPluginCollectionInterface;
@ -17,7 +11,6 @@ use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\Core\Field\PluginSettingsInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\field_ui\Element\FieldUiTable;
use Drupal\field_ui\FieldUI;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityDisplayModeDeleteForm.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Entity\EntityDeleteForm;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityDisplayModeEditForm.
*/
namespace Drupal\field_ui\Form;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityDisplayModeFormBase.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Entity\EntityForm;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityFormDisplayEditForm.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Field\FieldDefinitionInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityFormModeAddForm.
*/
namespace Drupal\field_ui\Form;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\EntityViewDisplayEditForm.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Field\FieldDefinitionInterface;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\FieldConfigEditForm.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Entity\EntityForm;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Form\FieldStorageConfigEditForm.
*/
namespace Drupal\field_ui\Form;
use Drupal\Core\Entity\EntityForm;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Plugin\Derivative\FieldUiLocalTask.
*/
namespace Drupal\field_ui\Plugin\Derivative;
use Drupal\Core\Entity\EntityManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Routing\FieldUiRouteEnhancer.
*/
namespace Drupal\field_ui\Routing;
use Drupal\Core\Entity\EntityManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Routing\RouteSubscriber.
*/
namespace Drupal\field_ui\Routing;
use Drupal\Core\Entity\EntityManagerInterface;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Tests\FieldUIDeleteTest.
*/
namespace Drupal\field_ui\Tests;
use Drupal\field\Entity\FieldConfig;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Tests\FieldUIRouteTest.
*/
namespace Drupal\field_ui\Tests;
use Drupal\Core\Entity\Entity\EntityFormMode;

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Tests\ManageFieldsTest.
*/
namespace Drupal\field_ui\Tests;
use Drupal\Component\Utility\SafeMarkup;

View file

@ -1,11 +1,6 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Tests\EntityDisplayTest.
*/
namespace Drupal\field_ui\Tests;
namespace Drupal\Tests\field_ui\Kernel;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Utility\Unicode;
@ -19,7 +14,7 @@ use Drupal\Core\Entity\Entity\EntityViewMode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\node\Entity\NodeType;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
use Drupal\user\Entity\Role;
/**

View file

@ -1,17 +1,12 @@
<?php
/**
* @file
* Contains \Drupal\field_ui\Tests\EntityFormDisplayTest.
*/
namespace Drupal\field_ui\Tests;
namespace Drupal\Tests\field_ui\Kernel;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\Entity\Entity\EntityFormMode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the entity display configuration entities.
@ -81,7 +76,7 @@ class EntityFormDisplayTest extends KernelTestBase {
$default_widget = $field_type_info['default_widget'];
$widget_settings = \Drupal::service('plugin.manager.field.widget')->getDefaultSettings($default_widget);
$expected = array(
'weight' => 0,
'weight' => 3,
'type' => $default_widget,
'settings' => $widget_settings,
'third_party_settings' => array(),

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\field_ui\Unit\FieldUiTest.
*/
namespace Drupal\Tests\field_ui\Unit;
use Drupal\Core\DependencyInjection\ContainerBuilder;