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\Core\Access\AccessArgumentsResolverFactory.
*/
namespace Drupal\Core\Access;
use Drupal\Component\Utility\ArgumentsResolver;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\AccessCheckInterface.
*/
namespace Drupal\Core\Access;
use Symfony\Component\Routing\Route;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\AccessManager.
*/
namespace Drupal\Core\Access;
use Drupal\Core\ParamConverter\ParamConverterManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\AccessManagerInterface.
*/
namespace Drupal\Core\Access;
use Symfony\Component\HttpFoundation\Request;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\AccessResult.
*/
namespace Drupal\Core\Access;

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\AccessibleInterface.
*/
namespace Drupal\Core\Access;
use Drupal\Core\Session\AccountInterface;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\CheckProviderInterface.
*/
namespace Drupal\Core\Access;
use Symfony\Component\Routing\RouteCollection;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\CsrfTokenGenerator.
*/
namespace Drupal\Core\Access;
use Drupal\Component\Utility\Crypt;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\CustomAccessCheck.
*/
namespace Drupal\Core\Access;
use Drupal\Core\Controller\ControllerResolverInterface;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Access\RouteProcessorCsrf.
*/
namespace Drupal\Core\Access;
use Drupal\Core\Render\BubbleableMetadata;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Action\ActionBase.
*/
namespace Drupal\Core\Action;
use Drupal\Core\Plugin\PluginBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Action\ActionInterface.
*/
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\PluginInspectionInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Action\ActionManager.
*/
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\CategorizingPluginManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Action\ActionPluginCollection.
*/
namespace Drupal\Core\Action;
use Drupal\Core\Plugin\DefaultSingleLazyPluginCollection;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Action\ConfigurableActionBase.
*/
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\ConfigurablePluginInterface;

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Ajax\AjaxResponse.
*/
namespace Drupal\Core\Ajax;
use Drupal\Core\Render\BubbleableMetadata;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor.
*/
namespace Drupal\Core\Ajax;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait.
*/
namespace Drupal\Core\Ajax;
use Drupal\Core\Asset\AttachedAssets;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Ajax\RemoveCommand.
*/
namespace Drupal\Core\Ajax;
/**
@ -21,7 +16,7 @@ namespace Drupal\Core\Ajax;
*
* @ingroup ajax
*/
class RemoveCommand Implements CommandInterface {
class RemoveCommand implements CommandInterface {
/**
* The CSS selector for the element(s) to be removed.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Annotation\Action.
*/
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Annotation\ContextDefinition.
*/
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Annotation\Mail.
*/
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -0,0 +1,105 @@
<?php
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\AnnotationBase;
/**
* Defines an annotation object for strings that require plural forms.
*
* Note that the return values for both 'singular' and 'plural' keys needs to be
* passed to
* \Drupal\Core\StringTranslation\TranslationInterface::formatPlural().
*
* For example, the annotation can look like this:
* @code
* label_count = @ PluralTranslation(
* singular = "@count item",
* plural = "@count items",
* context = "cart_items",
* ),
* @endcode
* Remove spaces after @ in your actual plugin - these are put into this sample
* code so that it is not recognized as annotation.
*
* Code samples that make use of this annotation class and the definition sample
* above:
* @code
* // Returns: 1 item
* $entity_type->getCountLabel(1);
*
* // Returns: 5 items
* $entity_type->getCountLabel(5);
* @endcode
*
* @see \Drupal\Core\Entity\EntityType::getSingularLabel()
* @see \Drupal\Core\Entity\EntityType::getPluralLabel()
* @see \Drupal\Core\Entity\EntityType::getCountLabel()
*
* @ingroup plugin_translatable
*
* @Annotation
*/
class PluralTranslation extends AnnotationBase {
/**
* The string for the singular case.
*
* @var string
*/
protected $singular;
/**
* The string for the plural case.
*
* @var string
*/
protected $plural;
/**
* The context the source strings belong to.
*
* @var string
*/
protected $context;
/**
* Constructs a new class instance.
*
* @param array $values
* An associative array with the following keys:
* - singular: The string for the singular case.
* - plural: The string for the plural case.
* - context: The context the source strings belong to.
*
* @throws \InvalidArgumentException
* Thrown when the keys 'singular' or 'plural' are missing from the $values
* array.
*/
public function __construct(array $values) {
if (!isset($values['singular'])) {
throw new \InvalidArgumentException('Missing "singular" value in the PluralTranslation annotation');
}
if (!isset($values['plural'])) {
throw new \InvalidArgumentException('Missing "plural" value in the PluralTranslation annotation');
}
$this->singular = $values['singular'];
$this->plural = $values['plural'];
if (isset($values['context'])) {
$this->context = $values['context'];
}
}
/**
* {@inheritdoc}
*/
public function get() {
return [
'singular' => $this->singular,
'plural' => $this->plural,
'context' => $this->context,
];
}
}

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Annotation\QueueWorker.
*/
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Annotation\Translation.
*/
namespace Drupal\Core\Annotation;
use Drupal\Component\Annotation\AnnotationBase;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Archiver\Annotation\Archiver.
*/
namespace Drupal\Core\Archiver\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -1,4 +1,5 @@
<?php
// @codingStandardsIgnoreFile
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Archiver\ArchiverException.
*/
namespace Drupal\Core\Archiver;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Archiver\ArchiverInterface.
*/
namespace Drupal\Core\Archiver;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Archiver\ArchiverManager.
*/
namespace Drupal\Core\Archiver;
use Drupal\Component\Plugin\Factory\DefaultFactory;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Archiver\Zip.
*/
namespace Drupal\Core\Archiver;
/**
@ -59,7 +54,7 @@ class Zip implements ArchiverInterface {
/**
* {@inheritdoc}
*/
public function extract($path, Array $files = array()) {
public function extract($path, array $files = array()) {
if ($files) {
$this->zip->extractTo($path, $files);
}

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetCollectionGrouperInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetCollectionOptimizerInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetCollectionRendererInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetDumper.
*/
namespace Drupal\Core\Asset;
use Drupal\Component\Utility\Crypt;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetDumperInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetOptimizerInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetResolver.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AssetResolverInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AttachedAssets.
*/
namespace Drupal\Core\Asset;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\AttachedAssetsInterface.
*/
namespace Drupal\Core\Asset;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\CssCollectionGrouper.
*/
namespace Drupal\Core\Asset;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\CssCollectionOptimizer.
*/
namespace Drupal\Core\Asset;
use Drupal\Core\State\StateInterface;

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException.
*/
namespace Drupal\Core\Asset\Exception;
/**

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException.
*/
namespace Drupal\Core\Asset\Exception;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\Exception\InvalidLibraryFileException.
*/
namespace Drupal\Core\Asset\Exception;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\Exception\LibraryDefinitionMissingLicenseException.
*/
namespace Drupal\Core\Asset\Exception;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\JsCollectionGrouper.
*/
namespace Drupal\Core\Asset;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\JsCollectionOptimizer.
*/
namespace Drupal\Core\Asset;
use Drupal\Core\State\StateInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\JsCollectionRenderer.
*/
namespace Drupal\Core\Asset;
use Drupal\Component\Serialization\Json;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDependencyResolver.
*/
namespace Drupal\Core\Asset;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDependencyResolverInterface.
*/
namespace Drupal\Core\Asset;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDiscovery.
*/
namespace Drupal\Core\Asset;
use Drupal\Core\Cache\CacheCollectorInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDiscoveryCollector.
*/
namespace Drupal\Core\Asset;
use Drupal\Component\Utility\NestedArray;
@ -20,20 +15,6 @@ use Drupal\Core\Theme\ThemeManagerInterface;
*/
class LibraryDiscoveryCollector extends CacheCollector {
/**
* The cache backend.
*
* @var \Drupal\Core\Cache\CacheBackendInterface
*/
protected $cache;
/**
* The lock backend.
*
* @var \Drupal\Core\Lock\LockBackendInterface
*/
protected $lock;
/**
* The library discovery parser.
*

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDiscoveryInterface.
*/
namespace Drupal\Core\Asset;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Asset\LibraryDiscoveryParser.
*/
namespace Drupal\Core\Asset;
use Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Authentication\AuthenticationCollector.
*/
namespace Drupal\Core\Authentication;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Authentication\AuthenticationCollectorInterface.
*/
namespace Drupal\Core\Authentication;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Authentication\AuthenticationManager.
*/
namespace Drupal\Core\Authentication;
use Drupal\Core\Routing\RouteMatch;

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