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:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\Error.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\LinkGeneratorInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
use Drupal\Core\Link;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\ThemeRegistry.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
use Drupal\Core\Cache\Cache;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\Token.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
use Drupal\Component\Render\HtmlEscapedText;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\UnroutedUrlAssembler.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\UnroutedUrlAssemblerInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Utility\UpdateException.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Utility;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Reference in a new issue