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\Utility\Error.
*/
namespace Drupal\Core\Utility;
use Drupal\Component\Utility\SafeMarkup;

View file

@ -1,15 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\Core\Utility\LinkGenerator.
*/
namespace Drupal\Core\Utility;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\GeneratedLink;
@ -166,7 +160,7 @@ class LinkGenerator implements LinkGeneratorInterface {
$attributes['href'] = $generated_url->getGeneratedUrl();
}
if (!SafeMarkup::isSafe($variables['text'])) {
if (!($variables['text'] instanceof MarkupInterface)) {
$variables['text'] = Html::escape($variables['text']);
}
$attributes = new Attribute($attributes);

View file

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

View file

@ -1,12 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Utility\ProjectInfo.
*
* API for building lists of installed projects.
*/
namespace Drupal\Core\Utility;
use Drupal\Core\Extension\Extension;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Utility\Token.
*/
namespace Drupal\Core\Utility;
use Drupal\Component\Render\HtmlEscapedText;

View file

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

View file

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

View file

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

View file

@ -36,7 +36,7 @@ use Drupal\user\Entity\User;
* @param array $data
* An associative array of data objects to be used when generating replacement
* values, as supplied in the $data parameter to
* \Drupal\Core\Utility\Token::replace().
* \Drupal\Core\Utility\Token::replace().
* @param array $options
* An associative array of options for token replacement; see
* \Drupal\Core\Utility\Token::replace() for possible values.